Table of Contents | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|
The "from address", which is used by JobScheduler if an E-mail is to be sent is specified in the configuration.
This address is used in general for all e-mails.
...
The job used as an example will execute a short shell script and then exit with exit-code 5.
The coding used in the "pre-processing" routine "spooler_process_before" modifies the "from address" to "ab@xyz-dom.com" for this job. The modification is only effective for this job.
Code Block |
---|
<[http://www.sos-berlin.com/doc/en/scheduler.doc/xml/job.xml job ]<job name="job8"> <[http://www.sos-berlin.com/doc/en/scheduler.doc/xml/script.xml script ]<script language="shell"> <![CDATA[ echo process exit 5 ]]> </script> <[http://www.sos-berlin.com/doc/en/scheduler.doc/xml/monitor.xml monitor ]<monitor name="process0" ordering="0"> <[http://www.sos-berlin.com/doc/en/scheduler.doc/xml/script.xml script ]language="javascript"> <![CDATA[ function spooler_process_before() \{ spooler_log.mail.from = "ab@xyz-dom.com"; spooler_log.info('some log entry ....'); return true; \} ]]> </script> </monitor> <[http://www.sos-berlin.com/doc/en/scheduler.doc/xml/run_time.xml run_time]<run_time/> </job> |
related downloads
...