In this section you will learn how to create a DMS scheduled shell job.
Add your job in jobsmanager.json file in conf folder:
{
"enabled": true,
"jobname": "<yourjobname>",
"jobtype":"shell",
"schedule": "* * * * * *"
}
Add a new shell configuration file in conf folder. Name it using this pattern:
job.<yourjobname>.config.json
Declare your shell command as the follow
{
"cmd":"command to execute"
}
For example to execute a localhost ping write:
{
"cmd":"ping 127.0.0.1"
}
Every shell job has its own log file under logs folder. Log file name follow this pattern:
dms_00.<yourjobname>.log
To correctly schedule your job please follow configuration page the scheduling syntax paragraph.