Skip to end of metadata
Go to start of metadata

You want to save a job in the live folder. The job should start immediately and when execution has finished, the file with the job should be deleted.

You can achieve this by using the run time attribute "once=yes" and with a post-processing script that will delete the file after execution.

 <?xml version="1.0" encoding="ISO-8859-1"?> 
 <job  stop_on_error="no">
     <script  language="shell">
 echo hello world
     <monitor  name="remove" ordering="0">
         <script  language="javax.script:rhino">
 function spooler_task_after(){ 
     <run_time  once="yes"/>

see also:

Write a comment…