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* <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