Hi
I have a requirement to write a shell script,that will check the all commented job in cron job.Please help !!
Hi
I have a requirement to write a shell script,that will check the all commented job in cron job.Please help !!
crontab -l | egrep'^( |[TAB])*#'
Where [TAB} is a literal tab character ([CTRL]-V & [TAB]) in shell/vi(m)
There may be more to it the simply checking one crontab. You did not specify what user(s): usually there are root, sys, and other system or application specific crontab files.