Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
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 achive this by using the run time attribute "once=yes" and with a postprocessing script that will delete the file after execution.
Code Block |
---|
<?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> |
...