Sponsored Content
Full Discussion: Auto enable/disable cron job
Top Forums Shell Programming and Scripting Auto enable/disable cron job Post 302378968 by gaurav1086 on Wednesday 9th of December 2009 08:16:10 AM
Old 12-09-2009
hello
you stop or kill the cron job. or remove it from the sysV scripts aka /etc/init.d/ or /etc/rc.d/init.d
make them not to start in the runlevel you boot in like replacing for e.g.
S450mysqld to K450mysqld for mysqld to not start at that runlevel 5.in /etc/rc.d/rc5.d.
later you can start them by doing the opposite.
There are many ways to do it.
Otherwise if you are bothered by the 1 min gap why dont you increase the gap by editing the crontab entry in the crontable.
Code:
crontab -e

and change the time stamps for the particular cron job that you want.
Regards.
 

10 More Discussions You Might Find Interesting

1. Linux

Enable and disable ttyS0

I have a modem connect it to ttyS0 , in unix sco i know i can disable and enable the port , how can i do this , is there a command that will allow me to do this. **** I'm running Redhat 9 *****External Usrobotics 56k Thanks a lot guys (1 Reply)
Discussion started by: josramon
1 Replies

2. UNIX for Dummies Questions & Answers

disable cron job

hi i got to shut down my server for the new year day. i am required to disable all cronjob temporarily. what is the command to do so? after start up the server will the cron job run itself automatically or i gotta restart all again? (8 Replies)
Discussion started by: legato
8 Replies

3. Solaris

Cron Job -- auto start process when it dies

I would like to setup a Cron job to check weather X process is running or not. if it is not running then start that X process with a log message.... can any one help writing a script? thanks (3 Replies)
Discussion started by: chandravadrevu
3 Replies

4. Solaris

SSH enable, Telnet disable ...

Hi... How do I enable SSH and disable telnet.. Also - is there anything special I need to do to ensure that a new user can use ssh and su but not telnet? Adel (15 Replies)
Discussion started by: ArabOracle.com
15 Replies

5. UNIX for Dummies Questions & Answers

disable cron job

Hi all, I am not the unix person but have to disable cron job on the server I typed crontab -l to list the job there is one job then i tried crontab -e and got one result 100 ( i do not know what that means) how can i disable the job to run i want to disable the job. Please show me... (3 Replies)
Discussion started by: patdev
3 Replies

6. Shell Programming and Scripting

How to disable Enable/Disable Tab Key

Hi All, I have bash script, so what is sintax script in bash for Enable and Disable Tab Key. Thanks for your help.:( Thanks, Rico (1 Reply)
Discussion started by: carnegiex
1 Replies

7. UNIX for Dummies Questions & Answers

crontab: disable/enable

since i don't have root access, i have been doing: crontab -l > /tmp/username.crontab crontab -r vi /tmp/username.crontab and copy page crontab -e, and paste sometimes, /tmp/username.crontab has more than 1 page, so i have to copy twice. how do i copy all contents from... (2 Replies)
Discussion started by: tjmannonline
2 Replies

8. UNIX for Dummies Questions & Answers

Enable and disable the auto mount

How to enable and disable the auto mount option for USB devices.? (3 Replies)
Discussion started by: ungalnanban
3 Replies

9. HP-UX

FTP service Enable/Disable

hi everybody, I can easily enable /disable the FTP service from SAM, how can I do this via command line? using inetd? how? cheers, messi (1 Reply)
Discussion started by: messi777
1 Replies

10. Infrastructure Monitoring

OID to disable/enable printing

Hi @ all, we are a non-profit educational organisation. Now my company wants to disable printers, when a room is not used. I do a lot monitoring, using snmp. So I had the idea of disabling and enabling the printers by using snmp. After searching for hours, I only found some status-objects (ro)... (1 Reply)
Discussion started by: karls0
1 Replies
startup(7)						 Miscellaneous Information Manual						startup(7)

NAME
startup - event signalling system startup SYNOPSIS
startup [ENV]... DESCRIPTION
The startup event is generated by the Upstart init(8) daemon after it has completed its own initialisation and is the signal that the rest of the system may be started. Typically this will involve checking and mounting the partitions and drives that form the filesystem, loading drivers for connected devices and starting the X windowing system or other login environment. In the default Upstart configuration, the primary task run on the startup event is the /etc/init/rc-sysinit.conf job responsible for gener- ating the System V compatible runlevel(7) event. See that page for a more detailed explanation of this process. Paradoxically there is currently no corresponding Upstart-native event signifying that the system is to be shutdown, only the System V com- patible runlevel 0 and runlevel 6 events provide this functionality. EXAMPLE
A service with no other dependencies run on startup might use: start on startup SEE ALSO
runlevel(7) init(8) Upstart 2009-07-09 startup(7)
All times are GMT -4. The time now is 04:13 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy