You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Current »

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">
         <![CDATA[
 echo hello world
         ]]>
     </script>
 
     <monitor  name="remove" ordering="0">
         <script  language="javax.script:rhino">
             <![CDATA[
 function spooler_task_after(){ 
    spooler_job.remove(); 
 }
             ]]>
         </script>
     </monitor>
 
     <run_time  once="yes"/>
 </job>

see also:

  • No labels