![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| How to disable RIP and enable EGP | stringman | Security | 3 | 02-19-2008 04:31 PM |
| Disable/Enable HP print services SCO OS 5 | sighbrrguy | UNIX for Advanced & Expert Users | 4 | 01-09-2008 09:33 AM |
| SSH enable, Telnet disable ... | ArabOracle.com | SUN Solaris | 14 | 03-02-2007 01:27 PM |
| Enable/Disable rlogin and rcopy | XP_2600 | SUN Solaris | 3 | 10-08-2006 06:52 PM |
| Enable and disable ttyS0 | josramon | Linux | 1 | 12-01-2003 08:58 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Enable & disable cronjob
Hi All,
I am new to cronjob and need some guidance on this. 1) How do i enable a cronjob ? Can it be done by "crontab mycronfile" or "crontab -e mycronfile" 2) How can i disable the cronjob? Can deleting of the "mycronfile" disable the cron or do i need to perform "crontab -r mycronfile" ? |
| Forum Sponsor | ||
|
|
|
#2
|
|||
|
|||
|
1) yes, yes
2) crontab -r |
|
#3
|
|||
|
|||
|
Hi,
Is there any way that i can check whether the cron has been disabled or enabled ? |
|
#4
|
|||
|
|||
|
If you mean the cron subsystem then do a check of the process list and see if cron is running. Otherwise it depends on your operating system.
If you mean your tasks, then do "crontab -l", if nothing is listed that does not start with # then you have nothing scheduled. |
|
#5
|
|||
|
|||
|
Hi ,
I can't disable my cron. Can you help ? Below is the error msg $ crontab -r cronline crontab: you are not a valid user (no entry in /etc/passwd). |
|
#6
|
|||
|
|||
|
1. What about
echo >empty crontab ./empty 2. Are you listed in /etc/passwd ? 3. What are the rights to the /etc/passwd file? eg "ls -ld /etc/passwd" 4. What is the result of "id"? |
|
#7
|
|||
|
|||
|
Does "crontab -r" remove all cronjobs regardless of which user id u are using ?
|
|||
| Google The UNIX and Linux Forums |
| Thread Tools | |
| Display Modes | |
|
|