Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
 <job  name="job7">
     <script  language="shell">
        <![CDATA[
 c:\temp\getParentId > 1.pid
 set /p PID=<1.pid
 del 1.pid
 echo pid= %PID%
         ]]>
     </script>
 
     <run_time />
 </job>

A good idea is to put this code snippet into a file, e.g. getpid.cmd, which can than included in any shell-job by using the include-function of JobScheduler.