You need to use "/bin/ksh -c %C".  The -c parameter to the ksh shell 
indicates:

       -c command-string
              the shell executes the command(s) contained in 
command-string

The %C substitution character indicates:

Substitute the values specified by the COMMAND and PARMS options, and the 
substituted value will be quoted (with all nested quotes properly 
escaped). 

The STAF User's Guide Process section 
(http://staf.sourceforge.net/current/STAFUG.htm#HDRPROCSRV) and 
Operational Parameters section 
(http://staf.sourceforge.net/current/STAFUG.htm#HDROPPARMS) have more 
information and examples on specifying a process shell.

So, you would use something like:

# STAF local PROCESS START SHELL "/bin/ksh -c %C" COMMAND ls PARMS "-l 
/etc"
Response
--------
77
 
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 
 





"jander...@talentex.co.uk" <jander...@talentex.co.uk> 
10/16/2009 05:54 AM

To
staf <staf-users@lists.sourceforge.net>
cc

Subject
[staf-users] process start shell [...] ?






When I try to specify a shell other than the default, I get an error:

# staf local process start shell /bin/ksh command ls parms -l /etc 

Error submitting request, RC: 47
Additional info
---------------
Invalid shell command: /bin/ksh

I have of course made sure that /bin/ksh exists and is executable, and 
if I omit the "/bin/ksh" it works fine. What am I missing here?

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to