Versions Compared

Key

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

...

Code Block
languagexml
titleExample shell script exit function
<job title="Send Mails" order="yes" stop_on_error="no" name="SendMail">
 <description >
 <include file="jobs/JobSchedulerManagedMailJob.xml"/>
 </description>

 <params >
 <param name="to" value="info@sos-berlin.com"/>

 <param name="subject" value="order log"/>
 </params>

 <script language="java" java_class="sos.scheduler.managed.JobSchedulerManagedMailJob"/>

 <monitor name="Prozess1process1" ordering="1">
 <script language="java:javascript">
 <![CDATA[
function spooler_process_before(){
 
 var order = spooler_task.order;
 var job_chain = order.job_chain.path;
 job_chain = job_chain.substring(1);
 job_chain = job_chain.replace(/\//g,",");

 var f = spooler.log_dir + "/order." + job_chain + "." + order.id + ".log";

 spooler_log.info(f);
 order.params.set_var("attachment",f);
 
 return true;
}
 ]]>
 </script>
 </monitor>

 <run_time />
</job>

...