...
Create a folder with the name
live
in your home folder. Create a simple job in thelive
folder like this:Code Block language xml title hello world job example collapse true <?xml version="1.0" encoding="ISO-8859-1"?> <job> <script language="shell"> <![CDATA[echo Hello World!]]> </script> <run_time once="yes"/> </job>
Open a console in your home folder and start the JobScheduler with the
start.cmd
start script.
If you have configured logging (log4j.properties and path to the properties file in thefactory.ini
file) then you should see a task log and job log for the sample job like this:Code Block language text title task log collapse true 2015-10-07 14:58:45.515+0200 [info] SCHEDULER-918 state=starting (at=never) 2015-10-07 14:58:45.516+0200 [info] SCHEDULER-987 Starting process: "C:\Users\YOUR_USERNAME\AppData\Local\Temp\\sos5051B.cmd" 2015-10-07 14:58:45.526+0200 [info] 2015-10-07 14:58:45.526+0200 [info] PATH_TO_YOUR_FOLDER>echo Hello World! 2015-10-07 14:58:45.526+0200 [info] Hello World! 2015-10-07 14:58:45.527+0200 [info] SCHEDULER-915 Process event 2015-10-07 14:58:45.556+0200 [info] SCHEDULER-918 state=closed 2015-10-07 14:58:45.556+0200 [info] SCHEDULER-962 Protocol ends in logs/task.HalloWorldExample.log
Code Block language text title job log collapse true 2015-10-07 14:58:45.507+0200 [info] SCHEDULER-893 Job is 'active' now 2015-10-07 14:58:45.512+0200 [info] SCHEDULER-930 Task 6114864 started - cause: period_once 2015-10-07 14:59:45.716+0200 [info] SCHEDULER-931 state=stopped 2015-10-07 14:59:45.717+0200 [info] SCHEDULER-962 Protocol ends in logs/job.HalloWorldExample.log
Change Management References
Jira | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
|