...
The easiest and safest approach is to run your regular automated tasks is to use cron to submit a job to the batch system with sbatch. Using the same example as above, it would be as easy as:
No Format |
---|
03 10,22 1 * * /usr/local/bin/sbatch -Q /path/to/my_script.sh |
Tip | ||
---|---|---|
| ||
Note that the full path to sbatch must be used. The -Q option in sbatch to will also suppress normal output and will avoid getting an email for every job submitted through cron. |
...