I'm starting up a simple STAX job and monitoring it from STAXMon.  I've defined 
a process that runs on a remote machine, and have chosen process over stafcmd 
because I want to wait for the remote process to end.  I can visually confirm 
that the remote process runs, and ends (it drops off of the Windows Task List), 
and yet the timer for the job, in STAXMon, keeps running.  This remote process 
is ending naturally - I'm not using a stopusing element.

I would like for this process to terminate when the remote process ends, so 
that I can check its return value, log a message based on that, and also copy a 
remote file to the local filesystem (ending the job).  

I have the process element inside of the sequence element because I intend to 
have multiple processes called within the function. [code is below]

Is there anything obvious that I'm doing wrong?  

Thank you.

<stax>
<defaultcall function="Main"/>
<function name="Main">
  <sequence>
    <script>
      set some variables here
    </script>
    <process name=some name here>
      <location> remote machine address </location>
      <command mode="'default'">
        start the remote process
      </command>
      <parms>
        pass in some parameters
      </parms>
      <stdout>file name here</stdout>
      <returnfile>name of remote  file to return</returnfile>
    </process>
    <if expr="RC != 0">
      <log level="'error'">
        'Process failed with RC=%s, Result=%s' % (RC, STAFResult)
      </log>
    </if>
    <else>
      <log level="'info'">
        Do some logging here
      </log>
    </else>
  </sequence>
</function>
</stax>
-------------------------------------------------------------------------
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