You can simply run the PROCESS START command that you provided. For example:
[r...@staf1a root]# STAF local PROCESS START SHELL COMMAND "ps -eaf | grep DELAY | grep -v grep" WAIT STDERRTOSTDOUT RETURNSTDOUT Response -------- { Return Code: 0 Key : <None> Files : [ { Return Code: 0 Data : root 12010 11956 0 09:29 pts/1 00:00:00 STAF local DELAY DELAY 5m } ] } [r...@staf1a root]# -------------------------------------------------------------- Sharon Lucas IBM Austin, luc...@us.ibm.com (512) 286-7313 or Tieline 363-7313 Pavel Tankov <ptan...@axway.com> 12/15/2009 11:45 AM To staf-users@lists.sourceforge.net cc Subject [staf-users] How to remotely execute piped shell commands Hello, How can I execute something like this: staf <hostname> PROCESS START SHELL COMMAND "ps -ef | grep myscript.sh | grep -v grep" WAIT STDERRTOSTDOUT RETURNSTDOUT -- 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 ------------------------------------------------------------------------------ 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
------------------------------------------------------------------------------ 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