disable cron job


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers disable cron job
# 1  
Old 12-28-2004
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?
# 2  
Old 12-28-2004
I do n't think u have to do any thing in perticular.
crontab entries pick up automatically.

Check crontab entries by 'crontab -l' after reboot.

If it shows all entries, ... then u do n't need to worry
abt any thing.
# 3  
Old 12-28-2004
Gee, if you shut down your server, that should do it. Computers won't run cron jobs while they're shut off. And yes, the start up scripts should restart cron when you power up your system.

If you want to stop and restart cron while leaving the server up, there is generally a way to that safely by running the cron start-up and shut-down scripts manually. If you tell us what type of system you have, we can help you with details on this.
# 4  
Old 12-28-2004
hi thanks for the prompt reply Smilie
i am running on unix server.
wat is the command to disable cron service if the system it still up?
# 5  
Old 12-28-2004
What kind of unix server??? Run "uname -a" and post the results.
# 6  
Old 12-28-2004
the result is
SunOS statsfs07 5.8 Generic_117000-03 sun4u sparc SUNW,Ultra-4

from here can i know what version of solaris is it runnin?
how to see wat version its in?
thanks
# 7  
Old 12-29-2004
i guess ..... by simply commenting crontab entries by #
will not trigger cron jobs.


to edit cron entries ... do 'crontab -e '


and do comment crontab entries.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

How to disable cron emails, but only for logrotate only not for other logs?

Guys, is there a script or command? how to disable cron emails, but only for logrotate only not for other logs (3 Replies)
Discussion started by: kenshinhimura
3 Replies

2. Shell Programming and Scripting

Cron job - Need to run Cron every quarter at particular time

Hi, 1) If some job supposed to run on 1st of every month at 7 AM In cron job when we have a blackout on the 1st ( i.e when 1st falls on a sunday ) how can we make the job run the next business day? 2) How can we run a job on 25th of every quarter 7 AM(jan,apr,jul,oct) And if 25th... (5 Replies)
Discussion started by: System Admin 77
5 Replies

3. Shell Programming and Scripting

Commented cron job -- cron monitoring

Hi I have a requirement to write a shell script,that will check the all commented job in cron job.Please help !! (2 Replies)
Discussion started by: netdbaind
2 Replies

4. Solaris

Cron job running even after cron is removed

Hi , I have removed a cron for particular user , but cron job seems to be running even after the cron entry is removed. The purpose of the cron was to sendmail to user ( it uses mailx utility ) I have restarted cron and sendmail service still user is getting mail alerts from the cron job. And... (4 Replies)
Discussion started by: chidori
4 Replies

5. Shell Programming and Scripting

CRON Job

Hi all, Pretty new to CRON but have been messing with Ubuntu for a while now Here is the situation/problem I have run into you. I currently run a very basic back procedure by executing a daily CRON job which copies all data from one directory to a USB drive & date stamps the copy:- cp... (2 Replies)
Discussion started by: 2scoops
2 Replies

6. Shell Programming and Scripting

Auto enable/disable cron job

Hi all, Does anyone know if it is possible to enable/disable a cron job within a script? I currently have a cron job which runs every minute but now it seems that sometimes I would like to turn this job off if a condition is met. I would then like to re-enable the job at a later date. ... (5 Replies)
Discussion started by: pxy2d1
5 Replies

7. 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

8. Solaris

cron job starts new cron proccess

I run cron in solaris 10 zone. One cron job which syncing files to nfs mounted on container, creates after finishing another cron proccess(/usr/sbin/cron), and after 100 existing cron proccesses next cron job will not start. It's too weird for me, I'm not able to solve this problem. Theoretically... (3 Replies)
Discussion started by: ron76
3 Replies

9. UNIX for Dummies Questions & Answers

CRON usage for CRON job

can anybody explain the usage of CRON for adding a cron job. please provide an example also for better understanding !!! Thanks (1 Reply)
Discussion started by: skyineyes
1 Replies
Login or Register to Ask a Question