The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
cron job starts new cron proccess ron76 SUN Solaris 3 05-11-2008 10:07 PM
AIX and cron logs filtering ?: /etc/cronlog.conf, /var/adm/cron/log Keith Johnson AIX 0 01-09-2008 04:32 PM
How to disable SU right civic2005 SUN Solaris 3 03-09-2007 09:16 AM
Disable X bbutler3295 UNIX for Dummies Questions & Answers 8 03-19-2002 03:19 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-28-2004
Registered User
 

Join Date: Nov 2004
Location: singapore
Posts: 40
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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?
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 12-28-2004
bhargav's Avatar
Registered User
 

Join Date: Sep 2004
Location: USA
Posts: 511
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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.
Reply With Quote
  #3 (permalink)  
Old 12-28-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,253
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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.
Reply With Quote
  #4 (permalink)  
Old 12-28-2004
Registered User
 

Join Date: Nov 2004
Location: singapore
Posts: 40
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
hi thanks for the prompt reply
i am running on unix server.
wat is the command to disable cron service if the system it still up?
Reply With Quote
  #5 (permalink)  
Old 12-28-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,253
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
What kind of unix server??? Run "uname -a" and post the results.
Reply With Quote
  #6 (permalink)  
Old 12-28-2004
Registered User
 

Join Date: Nov 2004
Location: singapore
Posts: 40
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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
Reply With Quote
  #7 (permalink)  
Old 12-28-2004
bhargav's Avatar
Registered User
 

Join Date: Sep 2004
Location: USA
Posts: 511
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
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.
Reply With Quote
  #8 (permalink)  
Old 12-29-2004
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,253
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
That 5.8 tells you that you have SunOS 5.8 aka Solaris 8.

To stop cron:

/etc/init.d/cron stop


To restart cron:

/etc/init.d/cron start


And by the way, there should be no reason to do this unless your own applications cannot have the year change.
Reply With Quote
  #9 (permalink)  
Old 01-22-2008
Registered User
 

Join Date: Nov 2007
Posts: 15
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Reddit! Stumble this Post!Spurl this Post!
Turn off cron in Unix

Experts
How do I turn off jobs in UNIX ( not by #) . Is there any command to do ?

I have
HP-UX
B.11.11


Thanks
Krishna
Reply With Quote
Google UNIX.COM
Reply

Thread Tools
Display Modes


The 50 most popular UNIX and Linux searches.
Google Search Cloud for The UNIX and Linux Forums
421 service not available, remote server has closed connection ^m automate ftp autosys awk trim bash eval bash exec bash for loop command copy/move folder in unix couldn't set locale correctly curses.h cut command in unix export command in unix find grep find mtime find null character in a unix file grep multiple lines grep or grep recursive hp-ux ifconfig inaddr_any inappropriate ioctl for device lynx javascript mailx attachment mget mtime ping port remove first character from string in k shell replace space by comma , perl script rsync ftp scp recursive segmentation fault(coredump) sftp script snoop unix solaris change ip address stale nfs file handle syn_sent tar exclude tar extract to folder test: argument expected unix unix .profile unix forum unix forums unix internals unix mtime unix simulator unix.com vi substitute while loop within while loop shell script


All times are GMT -7. The time now is 03:26 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101