Date: Fri, 29 Mar 2024 05:54:23 +0000 (UTC) Message-ID: <763263000.12437.1711691663464@change.sos-berlin.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_12436_54025902.1711691663464" ------=_Part_12436_54025902.1711691663464 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
You want to save a job in the live folder. The job should start immediat= ely and when execution has finished, the file with the job should be delete= d.
You can achieve this by using the run time attribute "once=3Dyes" and wi= th a post-processing script that will delete the file after execution.
<?xm= l version=3D"1.0" encoding=3D"ISO-8859-1"?>=20 =20 =20 <job stop_on_error=3D"no"> <script language=3D"shell"> <![CDATA[ echo hello world ]]> </script> =20 <monitor name=3D"remove" ordering=3D"0"> <script language=3D"javax.script:rhino"> <![CDATA[ function spooler_task_after(){=20 spooler_job.remove();=20 } ]]> </script> </monitor> =20 <run_time once=3D"yes"/> </job>
see also: