The STAX User's Guide has some examples on how to check the return code
(and returned files) when a <process> completes:
http://staf.sourceforge.net/current/STAX/staxug.html#Header_Process
For example:
In the following example of a process element, a command which writes to
stdout and stderr and produces a couple of files (C:\process1.inf and
C:\process2.inf) is run. The contents of the stdout file and the two
additional files are returned in STAXResult when the process completes.
Note that the stdout file also contains stderr output because <stderr>
specified mode 'stdout' instead of specifying a different file name. Then
the contents all returned files are written to one central place, the STAX
Job User Log.
<sequence>
<process>
<location>machName</location>
<command>cmd</command>
<stdout>'C:/temp.out'</stdout>
<stderr mode="'stdout'"/>
<returnstdout/>
<returnfiles>['C:/process1.inf', 'C:/process2.inf']</returnfiles>
</process>
<if expr="RC != 0">
<log level="'error'">
'Process failed with RC=%s, Result=%s' % (RC, STAFResult)
</log>
<elseif expr="STAXResult != None">
<iterate var="fileInfo" in="STAXResult" indexvar="i">
<if expr="fileInfo[0] == 0">
<sequence>
<log level="'info'">fileInfo[1]</log>
</sequence>
<else>
<log level="'error'">
'Retrieval of file %s contents failed with RC=%s' % (i,
fileInfo[0])
</log>
</else>
</if>
</iterate>
</elseif>
<else>
<log level="'info'">'STAXResult is None'</log>
</else>
</if>
</sequence>
David Bender
STAF/STAX Development
8-1268 (512-838-1268)
IBM Austin Bldg. 903-5B002
Internet: [EMAIL PROTECTED]
Vijita <[EMAIL PROTECTED]>
10/16/2008 12:41 AM
To
staf-users@lists.sourceforge.net
cc
Subject
Re: [staf-users] Is there any way to track submitted request status
completion with basic STAF
Hi,
Similer question I have.
I have written xml job file to execute some process, with <process> and
<parms> tag.
After submitting the xml job to STAX, how can I check whether that process
is executed successfully or not?
Thanks,
Vijita.
On Thu, Oct 16, 2008 at 2:38 AM, Avijit Roy <[EMAIL PROTECTED]> wrote:
Hi,
I am trying to execute some process on 3 different machines from one of
the driver machine. The main goal is after completion the tasks on three
different machines, I want to copy the result file from those three
machines into driver machine and compute the result.
I am using STAF and PERL to do the basic prototype.
My question is after submitting the task using STAF, is there any way to
check that submitted tasks has completed or not?
Here are the following steps which I want to achieve: I am stuck on Step 5
now.
Step 1 - Registering STAF
Step 2 – Submitting the request on Machine1
Step 3 - Submitting the request on Machine2
Step 4 - Submitting the request on Machine4
Step 5 – I want to check Step 3, 4 and 5 tasks has completed or not
----------------------------------->? How should I do that?
Step 6 – If completed all the tasks copy the result file from machine 1,
2, 3 to driver machine
Can anybody please suggest me how to work it out?
Thanks, Avi
-------------------------------------------------------------------------
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
-------------------------------------------------------------------------
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