I am a noob at shell scripting and have been reading up on this topic in random google searches.
The only way that I saw that worked was creating a tmpfile.
IE:
crontab -l > $tmpfile
edit $tmpfile
crontab $tmpfile
rm $tmpfile
I need a script that will comment out my watchdog line so I can upgrade mysql w/o any interference. I will also need to add at the end of this script to un-comment it.
Here is the line I would need commented. (no this is not all that is in my crontab)
*/5 * * * * /opt/watchdog/startwatchdog.sh
Any help would much be appreciated!!