Use a ^ to escape the {
For example:
$ STAF dev48 PROCESS START SHELL COMMAND "unset LD_PRELOAD; dtrace -n
'proc:::exec-success ^{ trace(curpsinfo->pr_psargs); }'" STDOUT
/nec/STAF/dtrace/proc.log STDERRTOSTDOUT
This is discussed in section "8.20.5 RESOLVE" of the STAF User's Guide
(http://staf.sourceforge.net/current/STAFUG.htm#HDRVARSERVICE).
Thanks,
David
David Bender
STAF/STAX Development
IBM Software Group, WPLC
11501 Burnet Rd.
Bldg. 903-5B002
Austin, TX 78758-3400
Phone (T/L): 1-512-286-5315 (363-5315)
ITN: 23635315
Email: bda...@us.ibm.com
"Semih Cemiloglu" <semih.cemilo...@nec.com.au>
08/12/2009 01:05 AM
Please respond to
semih.cemilo...@nec.com.au
To
<staf-users@lists.sourceforge.net>
cc
Subject
[staf-users] Escaping Variable substitution within STAF Process service
Dear STAF users,
I'm trying to run a shell command through STAF Process service. The
command involves curly braces (i.e., {}) for which STAF Process is trying
to resolve (variable). Is there any way to stop or escape variable
substitution while submitting a command to STAF Process service?
For instance;
$ STAF dev48 PROCESS START SHELL COMMAND "unset LD_PRELOAD; dtrace -n
'proc:::exec-success { trace(curpsinfo->pr_psargs); }'" STDOUT
/nec/STAF/dtrace/proc.log STDERRTOSTDOUT
Error submitting request, RC: 13
Additional info
---------------
Variable resolution failed for string: unset LD_PRELOAD; dtrace -n
'proc:::exec-success { trace(curpsinfo->pr_psargs); }'
You are trying to resolve a variable that does not exist.
$
I understand that STAF is trying to substitute what's inside the {} in the
above command. My attempts to escape the (mistaken) variable reference via
"\{ ... \}" have not been successful. I am also unable to locate a
discussion on the subject in STAF documentation.
The system I'm using is Sun Solaris v10 on sparc platform. Staf version is
3.3.4 compiled with Sun CC. Any help or idea will be much appreciated.
Kind regards,
Semih Cemiloglu
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008
30-Day
trial. Simplify your report design, integration and deployment - and focus
on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users