Because the pkill command you're submitting is "killing" the STAF PROCESS START request itself (since it is matching myscript.sh in the STAF process). You need to specify a pkill command that just kills your myscript.sh process itself.
-------------------------------------------------------------- Sharon Lucas IBM Austin, luc...@us.ibm.com (512) 286-7313 or Tieline 363-7313 Pavel Tankov <ptan...@axway.com> 12/15/2009 10:39 AM To staf-users@lists.sourceforge.net cc Subject [staf-users] staf returns "Terminated" when starting a remote shell command Hello, I'm executing the following STAF request: staf <hostname> PROCESS START SHELL COMMAND "pkill -f myscript.sh" WAIT STDERRTOSTDOUT RETURNSTDOUT ... and I get the following response: Terminated instead of the expected: { Return Code: 0 Key : <None> Files : [ { Return Code: 0 Data : } ] } What could be the reason? Details: ===================== machine starting the command: -------------------------------------------- Red Hat Enterprise Linux Server release 5.3 (Tikanga) x86_64 staf is 32 bit, version 335 destination machine: ---------------------------- Red Hat Enterprise Linux Server release 5.3 (Tikanga) x86_64 staf is 32 bit, version 335 -- PAVEL TANKOV Senior Quality Assurance Engineer, Secure Transport, Axway P: +359 (2) 817-8449 Business Park Sofia, Mladost 4, Build. 11, fl. 2 1766 Sofia, Bulgaria ptan...@axway.com - http://www.axway.com ------------------------------------------------------------------------------ Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev _______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------ This SF.Net email is sponsored by the Verizon Developer Community Take advantage of Verizon's best-in-class app development support A streamlined, 14 day to market process makes app distribution fast and easy Join now and get one step closer to millions of Verizon customers http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________ staf-users mailing list staf-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/staf-users