When you specify a command with parameters for a <process> element, you 
need to specify mode="'shell'" as an attribute for the <command> element. 
For example:

<command mode="'shell'">
  'java -jar /tmp/MultiCastor.jar -g /tmp/config.xml'
</command>

Or, if you prefer, you can specify the parameters using the <parms> 
sub-element and then you don't have to specify the shell mode for the 
command.  For example:

<command>'java'</command>
<parms>'-jar /tmp/MultiCastor.jar -g /tmp/config.xml'</parms>

See section "8.12.2 START" in the STAF User's Guide at 
http://staf.sourceforge.net/current/STAFUG.htm#HDRPROCSRV for more 
information about the COMMAND, SHELL, and PARMS options for a PROCESS 
START request.

------------------------------------------------------------
Sharon Lucas
IBM Austin,   luc...@us.ibm.com
(512) 286-7313 or Tieline 363-7313




From:   Fabian Fäßler <f...@fabif.de>
To:     staf-users@lists.sourceforge.net, 
Date:   11/02/2011 10:17 AM
Subject:        [staf-users] [STAX] call java -jar command



Hello,

I'm an applied computer science student from germany. I also work for IBM 
(fabian.faess...@de.ibm.com). We have a project in university and we have 
to implement some tests with STAF/STAX. 
I have a STAX xml file with a command I want to run.

<command>
                 'java -jar /tmp/MultiCastor.jar -g /tmp/config.xml'
</command>

But I can't run this job. I always get RC: 10 with STAFResult invalid 
command: ...
The files definitely exist in /tmp/.
But I can run Java without any arguments, then I get the same return like 
when you issue "java" in a terminal. 

<command>
                 'java'
</command>

Return: "Usage: java [-options] class [args...] ..."

We just started with STAF/STAX and we thought, we just can run our known 
commands with the <command> tag. So what did we understand wrong?

Thank you,
kind regards,
Fabian



------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users


------------------------------------------------------------------------------
RSA&#174; Conference 2012
Save $700 by Nov 18
Register now&#33;
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to