...
Code Block |
---|
java -jar lib/saxon9he.jar -s:"cron/cronconvert_result.xml" -xsl:"config/xml2live.xsl" sos.destination="cron/live" |
This call create creates a directory ./cron/live/GlobalCollect/ which contains the JobScheduler objects (Jobs, Job Chains, Orders).
The folder has subdirectories corresponding to the paths of the cron jobs.
In our example you get
- ./cron/live/GlobalCollect/path_to_file/file.sh.job.xml
when you have called the cronconverter without -createJobChains or otherwise - ./cron/live/GlobalCollect/path_to_file/file.sh.job.xml
- ./cron/live/GlobalCollect/path_to_file/file.sh.job_chain.xml
- ./cron/live/GlobalCollect/path_to_file/file.sh,file_sh.order.xml
with the following content:
./cron/live/GlobalCollect/path_to_file/file.sh.job.xml (Standalone-Job)
Code Block |
---|
<?xml version="1.0" encoding="iso-8859-1"?> <job timeout="600" title="Cron Job /path_to_file/file.sh &gt;&gt; /path_to_file/file.log 2&gt;&amp;1"> <extensions> <extension xmlns="www.sos-berlin.com/schema/joe"> <generator date="2013-02-21 11:46:18" name="CronConverter" vendor="www.sos-berlin.com"> <docu>*/30 * * * * /path_to_file/file.sh &gt;&gt; /path_to_file/file.log 2&gt;&amp;1</docu> </generator> <comment/> </extension> </extensions> <script language="shell"><![CDATA[ echo created by CronConverter, at 2013-02-21 11:46:18 /path_to_file/file.sh >> /path_to_file/file.log 2>&1]]></script> <run_time> <period repeat="00:30"/> </run_time> </job> |
./cron/live/GlobalCollect/path_to_file/file.sh.job.xml (Order-Job)
Code Block |
---|
<?xml version="1.0" encoding="iso-8859-1"?> <job order="yes" timeout="600" title="Cron Job /path_to_file/file.sh &gt;&gt; /path_to_file/file.log 2&gt;&amp;1"> <extensions> <extension xmlns="www.sos-berlin.com/schema/joe"> <generator date="2013-02-21 11:46:18" name="CronConverter" vendor="www.sos-berlin.com"> <docu>*/30 * * * * /path_to_file/file.sh &gt;&gt; /path_to_file/file.log 2&gt;&amp;1</docu> </generator> <comment/> </extension> </extensions> <script language="shell"><![CDATA[ echo created by CronConverter, at 2013-02-21 11:46:18 /path_to_file/file.sh >> /path_to_file/file.log 2>&1]]></script> </job> |
...