I would like to be able to add a cron entry (for 'root') simply by running a shell script. What I would like to avoid is having to use 'crontab -e' and editing the entry into the list of existing entries. I simply want to add a new cron job at the end of the current list.
The cron entry would look something like this:
The slight twist to this requirement is that the script I want executed at 3.00am every day requires an argument so I need to be able to pass the argument to it too (from the cron job).Code:3 * * * * /<path>/<myscript.sh> <argument>


LinkBack URL
About LinkBacks
Reply With Quote

