You could display the HELP for the STAX EXECUTE request by submitting: 

  STAF staxMachine STAX HELP

and probably easily figure out which options correspond to the STAX 
Monitor options.  For example:

  STAF staxMachine STAX EXECUTE FILE "C:/stax/test1.xml" ...

Or, if your STAX EXECUTE request is more complex, you can enable tracing 
for STAX service requests on your STAX Monitor machine to see the actual 
STAX EXECUTE request that the STAX Monitor is submitting.  To do this, on 
your STAX Monitor machine do:

  STAF local TRACE DISABLE ALL SERVICES
  STAF local TRACE ENABLE SERVICE STAX
  STAF local TRACE ENABLE TRACEPOINTS "ServiceRequest RemoteRequests"
  STAF local TRACE SET DESTINATION TO FILE C:/staf/stafproc.trc

If desired, see section "8.18 Trace Service" in the STAF User's Guide at 
http://staf.sourceforge.net/current/STAFUG.htm#HDRTRACESRV for more 
information on the TRACE service.

The actual EXECUTE requests that the STAX Monitor submits to the STAX 
service (and other STAX requests it submits) will be contained in the file 
that you redirected STAF trace output to (e.g. C:/staf/stafproc.trc).  For 
example:

STAFProc version 3.4.7 initialized
20111103-14:45:39;7220;00000001;STAX Service Request - Client: 
local://local, Handle: 55, Process: STAX/JobMonitor/local/SubmitExecute, 
Request: EXECUTE HOLD FILE :18:c:\stax\debug2.xml JOBNAME :18:Exercise2.6 
Debug2

Don't specify the HOLD option on the STAX EXECUTE request as that is only 
there so that the STAX Monitor can start monitoring the job before it 
releases the job. 

Note that the STAX Monitor "wraps" options values that could contain 
spaces using the STAF LengthColonLength format.  The option values could 
be contained within double quotes instead (if the option values don't 
contain double quotes).  For example, the above STAX EXECUTE request in 
the trace output could have been submitted as follows:

  STAF local STAX EXECUTE FILE "c:\stax\debug2.xml" JOBNAME "Exercise2.6 
Debug2"

Note that you can submit STAF service requests via a shell script, a .bat 
file, or a Java / C++ / Perl / Python / Tcl program, or via the command 
line using the STAF executable.

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




From:   Tennis Smith <tennis_sm...@yahoo.com>
To:     staf-users@lists.sourceforge.net, 
Date:   11/03/2011 02:34 PM
Subject:        [staf-users] Figuring Out The Equivalent STAX CLI Command



Hi,

I have a set of scripts that work just fine when submitted via the stax 
job monitor.  But, i'm getting tired of constantly having to use the GUI 
for a simple job submission.

How do i figure out what the equivalent command string would be if I 
wanted to submit this from my commandline?

-- 
Tks,
-Tennis
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
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(R) Conference 2012
Save $700 by Nov 18
Register now
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