Note that the command separator for Unix is ";" and the command separator 
for Windows is "&".  STAF provides a variable with the command separator's 
value:  STAF/Config/Sep/Command

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   [email protected]
(512) 286-7313 or Tieline 363-7313

----- Forwarded by Sharon Lucas/Austin/IBM on 03/22/2010 10:28 AM -----

Sharon Lucas/Austin/i...@ibmus 
03/22/2010 10:01 AM

To
"Uma Maheswar Chilukuri" <[email protected]>
cc
[email protected]
Subject
[staf-users] Fw:  Persisten Shell Session through PROCESS service







Also, if you don't have complex commands to run that require checking 
return codes, instead of running them via a shell script, you might be 
able to run them using the command separator, ";".  For example: 

STAF machine PROCESS START SHELL COMMAND "cd /tmp; ls -l" RETURNSTDOUT 
STDERRTOSTDOUT WAIT

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   [email protected]
(512) 286-7313 or Tieline 363-7313

----- Forwarded by Sharon Lucas/Austin/IBM on 03/22/2010 09:55 AM ----- 
David Bender/Austin/i...@ibmus 
03/22/2010 09:19 AM 


To
"Uma Maheswar Chilukuri" <[email protected]> 
cc
[email protected] 
Subject
Re: [staf-users] Persisten Shell Session through PROCESS service








No, that is not possible.

If you need to have multiple requests execute in the same shell, then you 
could create a shell script (or Windows bat file) that executed the 
multiple requests, and then execute the shell script or bat file via the 
PROCESS START request.

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: [email protected] 




"Uma Maheswar Chilukuri" ---03/22/2010 08:41:32 AM--- Hi,

From: 

"Uma Maheswar Chilukuri" <[email protected]> 

To: 

<[email protected]>, <[email protected]> 

Date: 

03/22/2010 08:41 AM 

Subject: 

[staf-users] Persisten Shell Session through PROCESS service





Hi,

>From STAF User guide for PROCESS service. 
8.12.2 "SHELL specifies that COMMAND should be started via a separate 
shell." 

>From this I know that each request to PROCESS service is executed in a 
separate/New shell.

Is there a way to have a shell session persisted for multiple requests? 

Thanks
Uma.
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev_______________________________________________

staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

<<image/gif>>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to