disabling and enabling the crontab

Hi All,

I need disable all the crontab job in the cron and then later have to enable the crontab job by shell scripting. or otherwise disable the cron and enable cron again by means of unix shell scripting.

Please can you one help me out in this.

Thanks in Advance.

Regards,
Sindu

use
crontab -e

and put a comment "#" to comment all the jobs.

Hi,

Thanks for the reply.

But it should be in shell script.

Disabling the cron itself for sometime and later with the script have to re-enable itself.

Regards,
Sindhu