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
cron(8) 						      System Manager's Manual							   cron(8)

NAME
cron - The system clock daemon SYNOPSIS
/usr/sbin/cron DESCRIPTION
The cron daemon runs shell commands at specified dates and times. Commands that are to run according to a regular or periodic schedule are found within the crontab files. Commands that are to run once only are found within the at files. You submit crontab and at file entries by using the crontab and at commands. Because the cron process exits only when killed or when the system stops, only one cron daemon should exist on the system at any given time. Normally, you start the cron daemon from within a run command file. During process initialization and when cron detects a change, it examines the crontab and at files. This strategy reduces the overhead of checking for new or changed files at regularly scheduled intervals. The cron command creates a log of its activities. The cron daemon must be started from the system startup scripts because it must begin execution without a login user ID set. The cron daemon starts each job with the following process attributes stored with the job by the invoking process: Login user ID Effective and real user IDs Effective and real group IDs Supplementary groups It also establishes the following attributes from the authentication profile of the account associated with the login user ID of the invok- ing process: Audit control and disposition masks Kernel authorizations DIAGNOSTICS
The at and batch programs will refuse to accept jobs submitted from processes whose login user ID is different from the real user ID. FILES
Specifies the command path. Main cron directory Directory containing the crontab files. List of allowed users. List of denied users His- tory information for cron Queue description file for at, batch, and cron RELATED INFORMATION
Commands: at(1), crontab(1), rc0(8), rc2(8), rc3(8) Files: queuedefs(4) delim off cron(8)
All times are GMT -4. The time now is 11:10 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy