Oh, stupid me! For some reason I had convinced myself that it wouldn't work and
I didn't even try it in the straight case, but tried escaping the pipe symbol
("|") with backslash and other weird punctuation.
Thanks!
--
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
[email protected] - http://www.axway.com
On Tuesday 15 December 2009 20:11:44 Sharon Lucas wrote:
> 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, [email protected]
> (512) 286-7313 or Tieline 363-7313
>
>
>
>
> Pavel Tankov <[email protected]>
> 12/15/2009 11:45 AM
>
> To
> [email protected]
> 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
>
>
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users