Sure, simply submit a STAF PROCESS START request for each process you want 
to run.  You can open two command prompts if you like and submit one STAF 
PROCESS START request from one command prompt, and the other STAF PROCESS 
START request from another command prompt.  You can use the Windows 
"start" command to start another command prompt.  Or you can write a .bat 
command to run these commands using the Windows "start" command to start 
them in another shell so that both can be run in parallel.  Note this 
isn't really a STAF question but a Windows question.

For example:

C:\>STAF local PROCESS START SHELL COMMAND "C:/temp/test1.exe" 
RETURNSTDOUT STDERRTOSTDOUT WAIT

And from another Windows command prompt:

C:\>STAF remotehost PROCESS START SHELL COMMAND "C:/temp/test2.exe" 
RETURNSTDOUT STDERRTOSTDOUT WAIT

Note that if you used STAX, you can write STAX jobs and use the <parallel> 
or <paralleliterate> elements to run processes (and other STAF commands) 
in parallel easily.

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:   Prasant Biswal <prasantkubis...@gmail.com>
To:     staf-users@lists.sourceforge.net, Sharon Lucas/Austin/IBM@IBMUS, 
Date:   03/21/2013 10:36 AM
Subject:        [staf-users] how to run 2 process from command prompt



Hi,
I need to invoke 2 processes in parallel using command line and wait for 
the return code from each process, can i do that using STAF from command 
prompt ?

Example : My process are :
          Process1 : test1.exe (to be run on local system)
          Process2:  test2.exe (to be run on remote system)

how can i invoke these 2 process at a time from command prompt using STAF. 
thanks in advance for your help.
Thanks,
-Prasant
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_mar
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to