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

Reply via email to