disabling and enabling the crontab


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting disabling and enabling the crontab
# 1  
Old 05-18-2012
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
# 2  
Old 05-18-2012
use
crontab -e

and put a comment "#" to comment all the jobs.
# 3  
Old 05-18-2012
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
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Hardware

How disabling GPU?

Hi All I'm find out a way to disable the DGD: AMD Radeon HD 7470M on my Ubutu 16.04.2 LTS because radeon open source module is not capable to support this GPU and consequence the boot is very slow. I have tried serveral way with pci-stub.ids in the grub menu but not work. In general how... (11 Replies)
Discussion started by: _Fabio_79
11 Replies

2. Shell Programming and Scripting

Disabling and enabling the cron

Hi All, Please tell me what is command to disable and enable the cron in unix. Thanks in Advance. Regards, Sindu (5 Replies)
Discussion started by: indira_s
5 Replies

3. Shell Programming and Scripting

enabling/disabling an oracle trigger

hi, i want to disable and then enable an oracle trigger through shell script. Please tell me how it can be done? (1 Reply)
Discussion started by: ss_ss
1 Replies

4. Solaris

disabling watchdog

hi, is it possible to disable the "hardware watchdog" on a V240 sol 10 server? and how to? this server freeze 9/10 during boot on this command...:mad: thanks (3 Replies)
Discussion started by: guilik
3 Replies

5. UNIX for Dummies Questions & Answers

disabling NIS

How do you disable a server, #1, from trying to use the NIS that is running on another server, #2? I would like the #1 server to just use the local etc/shadow file (3 Replies)
Discussion started by: calamine
3 Replies

6. UNIX for Dummies Questions & Answers

Disabling logrotate

Is there a way to disable log rotation? (just for wtmp) I'm looking in /etc/logrotate.conf and I checked the man page but didn't see any option to disable. Is it as simple as commenting out monthly and rotate lines? /var/log/wtmp { missingok # monthly create 0664 root utmp # ... (2 Replies)
Discussion started by: primal
2 Replies

7. UNIX for Dummies Questions & Answers

Ports Disabling

I will want to disable all the ports not needed in my UNIX. If I put a # sign at the beginning of the line of the port name I want to disable in /etc/services.... that's all????? Or I need to do anything else to disable a port???? (1 Reply)
Discussion started by: rrivas
1 Replies

8. UNIX for Dummies Questions & Answers

Disabling Telnet

How do you keep users from logging on while you do file maintenance? Is there a way to temporarily disable telnet? (2 Replies)
Discussion started by: michieka
2 Replies
Login or Register to Ask a Question