How to Pass a Task to cron
From a Script?
You can use the following script to do this in scripts:
1crontab -l > taskcron
2echo "* * * * * sometask" >> taskcron
3crontab taskcron
4rm taskcron
cron
From a Script?You can use the following script to do this in scripts:
1crontab -l > taskcron
2echo "* * * * * sometask" >> taskcron
3crontab taskcron
4rm taskcron