You need to use " to embed quotes in the STAF service request. The following should work:
<staf
location="@{ip}"
service="process"
request="start command "psshutdown -accepteula -r -t 0" wait
returnstdout stderrtostdout"/>
Thanks,
David
David Bender 11501 Burnet Rd. Phone (T/L): 1-512-286-5315
STAF/STAX Development Bldg. 903-5B002 (363-5315)
Austin, TX ITN: 23635315
IBM Software Group, 78758-3400 Email: [email protected]
WPLC
From: Tennis Smith <[email protected]>
To: [email protected]
Date: 03/21/2010 06:27 PM
Subject: [staf-users] ant cmd on cli works -- but not via staf/ant
interface
Hi,
This command works just fine from the CLI:
staf 10.10.10.10 process start command "psshutdown -accepteula -r -t 0"
wait returnstdout stderrtostdout
But it does not work when calling the ant interface and on the same machine
as the cli:
<staf
location="@{ip}"
service="process"
request="start command 'psshutdown -accepteula -r -t 0' wait
returnstdout stderrtostdout"/>
The response I get is:
[staf] 10.10.10.10 process start command 'psshutdown -accepteula -r -t
0' wait returnstdout stderrtostdout
[staf] RC=10, Result=Error starting the process. CreateProcess failed
with OS RC 2: The system cannot find the file specified.
[staf]
The target machine is winxp running staf 3.3.5. The cli/ant machine is
CentOS running 3.4.0.
What am I doing wrong?
--
Tks,
-T
------------------------------------------------------------------------------
Download Intel® 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
<<inline: graycol.gif>>
<<inline: ecblank.gif>>
------------------------------------------------------------------------------ Download Intel® 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
