Note that you could use the <log> element to log a message to your STAX 
Job User Log (and/or send a message to the STAX Monitor if you're using 
the STAX Monitor) within your STAX job right before each <stafcmd> element 
and log the RC and STAFResult after each <stafcmd> element if you wanted. 
That way, your STAX Job User Log (and/or STAX Monitor Messages panel) will 
contain all the stafcmds that were run by your STAX job.

--------------------------------------------------------------
Sharon Lucas
IBM Austin,   [EMAIL PROTECTED]
(512) 838-8347 or Tieline 678-8347




Chris <[EMAIL PROTECTED]> 
Sent by: [EMAIL PROTECTED]
07/15/2008 12:20 PM

To
staf-users@lists.sourceforge.net
cc

Subject
[staf-users] Can't output all the commands for a job






Hi,
I'd like to be able to get a list of all the commands to be run for a
job. At the moment when I run 'staf local stax list job [jobnumber]
stafcmds', I will only get the current command.

If the job is a Pending Request, running 'staf local stax list job
[jobnumber] stafcmds' yields...
Stafcmd Name Location Request# Service Request
------------ -------- -------- ------- ------------------------
STAFCommand1 local    [requestnumber]   respool request pool [machinename]

If the job is at the end of the queue (it is currently running),
running 'staf local stax list job [jobnumber] stafcmds' yields...
Stafcmd Name Location Request# Service Request
------------ -------- -------- ------- 
----------------------------------------
STAFCommand2 [machinename] [requestnumber]   process START COMMAND
[the actual command we want to run when it gets to the end of the
queue]

Where as what I would like to be able to output is when a job is a
Pending Request is...

Stafcmd Name Location Request# Service Request
------------ -------- -------- ------- ------------------------
STAFCommand1 local    [requestnumber]   respool request pool [machinename]
STAFCommand2 [machinename] [requestnumber]   process START COMMAND
[the actual command we want to run when it gets to the end of the
queue]

Am I running the wrong command to output this information (it's all in
the xml file for stax to read.. but the parameter 'stafcmds' suggested
to me that it'd retrieve all of the commands related to the job so I'm
a bit confused.

I am running version 3.1.1 of stax and version 3.1.2 of staf,

Any help on this matter would be gratefully received,

Many thanks,
Chris

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's 
challenge
Build the coolest Linux based applications with Moblin SDK & win great 
prizes
Grand prize is a trip for two to an Open Source event anywhere in the 
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to