A reading of the 'start' command help info ("start /?" at a command prompt)
suggests you may be able to do it by adding the /B and /WAIT arguments to
the START command:
C:\Documents and Settings\jveilleu>start /?
Starts a separate window to run a specified program or command.
START ["title"] [/Dpath] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
[/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL | /BELOWNORMAL]
[/WAIT] [/B] [command/program]
[parameters]
"title" Title to display in window title bar.
path Starting directory
B Start application without creating a new window. The
application has ^C handling ignored. Unless the application
enables ^C processing, ^Break is the only way to interrupt
the application
I The new environment will be the original environment passed
to the cmd.exe and not the current environment.
MIN Start window minimized
MAX Start window maximized
SEPARATE Start 16-bit Windows program in separate memory space
SHARED Start 16-bit Windows program in shared memory space
LOW Start application in the IDLE priority class
NORMAL Start application in the NORMAL priority class
HIGH Start application in the HIGH priority class
REALTIME Start application in the REALTIME priority class
ABOVENORMAL Start application in the ABOVENORMAL priority class
BELOWNORMAL Start application in the BELOWNORMAL priority class
WAIT Start application and wait for it to terminate
command/program
If it is an internal cmd command or a batch file then
the command processor is run with the /K switch to cmd.exe.
This means that the window will remain after the command
has been run.
If it is not an internal cmd command or batch file then
it is a program and will run as either a windowed
application
or a console application.
parameters These are the parameters passed to the command/program
.....
I tried this from a command prompt and it did the expected thing (ran the
command directly in the same window I was typing in). Perhaps if you did it
that way but via STAF with PROCESS START it would work too??
---------------------------------------------------------------------------------------
Joe Veilleux
IBM/Lotus Domino Server Quality Engineering
550 King Street
Littleton MA 01460
Email: [email protected]
David
Bender/Austin/IBM
@IBMUS To
yamini sardana
09/13/2010 10:06 <[email protected]>
AM cc
[email protected]
Subject
Re: [staf-users] starting a process
with High Priority
Hi,
I don't know of a way to do that. If you use "start" as the STAF PROCESS,
the application will start in a separate Windows shell, so the process
output will not be accessible via STAF.
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
Inactive hide details for yamini sardana ---09/13/2010 08:30:18 AM---Hi, I
have a windows console application which takes 2 filyamini sardana
---09/13/2010 08:30:18 AM---Hi, I have a windows console application which
takes 2 files as input parameters
From: yamini sardana <[email protected]>
To: [email protected]
Date: 09/13/2010 08:30 AM
Subject: [staf-users] starting a process with High Priority
Hi,
I have a windows console application which takes 2 files as input
parameters and executes with a normal priority. After the process
completes, the STAXResult contains the stdout and stderr from this process.
Now for some tests, I want to run this application as a High priority
process and get the output in STAXResult.
I tried using the "start /HIGH <application>" DOS command but it does'nt
return anything in STAXResult.
Can you please let me know if there is any option through which I can
achive this test scenario.
Thanks in advance.
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users
<<inline: graycol.gif>>
<<inline: pic30741.gif>>
<<inline: ecblank.gif>>
------------------------------------------------------------------------------ Start uncovering the many advantages of virtual appliances and start using them to simplify application deployment and accelerate your shift to cloud computing http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________ staf-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/staf-users
