When you run this command from a command shell, are you running it the
same way and does it complete and return a result/output to the comment
prompt? About how long does it take to run? e.g. Did you run it as
follows and did it complete and return to C:\> and what was the result?
C:\>c:\iometer\iometer.exe c:\config.icf c:\result.csv
C:\>
Does this command request input while it is running -- if so, then that
would be the problem.
If it doesn't and it runs as shown above and returns to C:\>, then the
only other thing I can think of is to try specifying the <stdin> option
with the name of a file that exists but is empty (so that you're
redirecting stdin, stdout, and stderr to get around a Windows API issue
that can occur for some commands). You don't need to specify the
SAMECONSOLE option then. For example:
<process name="'Execute IOMeter'">
<location>'local'</location>
<command mode="'shell'">'c:\\iometer\\iometer.exe c:\\config.icf
c:\\result.csv'</command>
<stdin>'c:\\empty.txt'</stdin>
<returnstdout/>
<returnstderr/>
</process>
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From: Luca Robusto <lucarobu...@gmail.com>
To: Sharon Lucas/Austin/IBM@IBMUS,
Cc: "staf-users@lists.sourceforge.net"
<staf-users@lists.sourceforge.net>
Date: 10/01/2013 07:39 AM
Subject: Re: [staf-users] append a script file to command line
A more question!
I am trying to execute this process that should be a batch file resulting
in a window to open and to start executing test.
If I execute the command from dos shell it's ok, but I cannot execute it
in a STAF process.
<process name="'Execute IOMeter'">
<location>'local'</location>
<command mode="'shell'">'c:\\iometer\\iometer.exe c:\\config.icf
c:\\result.csv'</command>
<console use="'same'"/>
<returnstdout/>
<returnstderr/>
</process>
It executes indefinitely and I never get a result....
Any ideas?
2013/9/30 Sharon Lucas <luc...@us.ibm.com>
Glad it's working. STAF provides another way to do this as well.
Instead, you could use the PROCESS START request's STDIN option to
specify the name of the stdin file (when you do this on Windows, you'll
probably also need to specify the SAMECONSOLE option as well). For
example, via a <process> element in a STAX job:
<script>
rssdcliWin = 'C:\\Program Files\\RealSSD Manager\\rssdm.exe'
yesAnswerFileName = 'yes.bat' # Specify the file name
</script>
<process name="'secureErase'">
<location>'local'</location>
<command mode="'shell'">'"%s" -X -n %s -p ffff' %
(rssdcliWin,driveId)</command>
<stdin>yesAnswerFileName</stdin>
<returnstdout/>
<returnstderr/>
<console use="'same'"/>
</process>
For more information on the STDIN option, see section "8.13 Process
Service", sub-section "8.13.2 START", in the STAF User's Guide at
http://staf.sourceforge.net/current/STAFUG.htm#HDRPROCSRV.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313
From: Luca Robusto <lucarobu...@gmail.com>
To: "staf-users@lists.sourceforge.net" <
staf-users@lists.sourceforge.net>,
Date: 09/30/2013 03:32 AM
Subject: Re: [staf-users] append a script file to command line
I had just to add
mode="'shell'"
in the command definition.
Sorry and thank you!
2013/9/30 Luca Robusto <lucarobu...@gmail.com>
Hi, I need to append a script file which just contains a y and return
character to accept the first question I get from command line when
executing a command.
My process is:
<process name="'secureErase'">
<location>'local'</location>
<command>'%s -X -n %s -p ffff' % (rssdcliWin,driveId)</command>
<parms>redirectYesAnswerToaFile</parms>
<returnstdout/>
<returnstderr/>
</process>
where:
rssdcliWin='C:\\Program Files\\RealSSD Manager\\rssdm.exe'
redirectYesAnswerToaFile=' < yes.bat'
and yes.bat contains:
y
<return character>
When I execute this string from CLI it's ok and software executes
correctly, but from STAX Monitor I get a parameters error.
Can you help me?
Thanks.
Luca.
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most
from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users