I'm not sure what you are really asking.
When you use the SHELL option for a PROCESS START request and don't
specify a value for the SHELL option, it uses the default shell. As
documented in the STAF User's Guide, the default shell used for Windows
NT+ systems is "cmd.exe /c" and the default shell used for Unix systems is
"/bin/sh". You can override the shell used by specifying a value for the
SHELL option or by setting the DEFAULTSHELL for the PROCESS service in
your STAF.cfg file or dynamically via a PROCESS SET request.
STAF is designed to work for all operating systems. To run a command like
"java -jar C:/TestHandler.jar", you should use the PROCESS service.
To run this java application on a Unix machine, you would need to specify
the correct path to the jar file. For example, if TestHandler.jar was
located in directory /tests, then you would run:
STAF unixMachine PROCESS START SHELL COMMAND "java -jar
/tests/TestHandler.jar"
If I didn't answer your question, please provide more information on what
your question is.
--------------------------------------------------------------
Sharon Lucas
IBM Austin, [EMAIL PROTECTED]
(512) 838-8347 or Tieline 678-8347
"Mohammad Jamal" <[EMAIL PROTECTED]>
Sent by: [EMAIL PROTECTED]
05/24/2008 02:17 PM
To
"STAF User" <[email protected]>
cc
Subject
[staf-users] [STAF-USER] : Query regarding process service
Hi,
To run any executables we can use Process service of STAF. Process service
runs the executables with the help of shell such as cmd.exe that is
provided by operating system.
I want to use the STAF services that run independently from the
installed operating system. So, please please suggest me if any such
service is available.
<Snip>
staf local process start shell command "java -jar c:/TestHandler.jar"
</End>
Here "TestHandler.jar is an executable. So, I want to run this
executable through STAF services except Process.
With regards
Mohammad Shahid Jamal
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
staf-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/staf-users