You cannot specify "> fileName" as part of the string you specify in the 
<request>.element's value to redirect the result from the log query 
request to a file.  Note that you have access to the result from the LOG 
QUERY request in the STAFResult variable in your STAX job.

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




From:   Cindy Zhu <c...@fekete.com>
To:     "staf-users@lists.sourceforge.net" 
<staf-users@lists.sourceforge.net>
Date:   05/11/2011 11:25 AM
Subject:        [staf-users] What is the problem in my STAX job



Hi,

I am trying to direct a log to a file from the following STAX job. But it 
failed all the time.

I did the same staf command from STAF, everything was working fine.


<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE stax SYSTEM "D:\DistributionTesting\STAF\stax.dtd">
<stax>
<defaultcall function="main" />
<function name="main">
<sequence>
<script>
STAXJobID = 'STAX_Job_1_User'
staxLog = 'D:\\STAXTesting.log'
</script>
<stafcmd name = "'Query STAX Job User Log'">
                                 <location>'local'</location>
                                 <service>'LOG'</service>
                                 <request>'QUERY MACHINE 
{STAF/Config/MachineNickName} LOGNAME %s > %s' % (STAXJobID, 
staxLog)</request>
</stafcmd>
<if expr="RC==0">
                 <log message="1">'Passed, %s %s' % (STAXJobID, 
staxLog)</log>
<else>
                 <log message = "1">'Failed, %s %s' % (STAXJobID, 
staxLog)</log>
</else>
</if>
</sequence>
</function>
</stax>

Can you please help?

Thanks,

Cindy


------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
staf-users mailing list
staf-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/staf-users

Reply via email to