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 jobs ajadaun HP-UX 5 10-15-2007 08:14 AM
Please help me with the run-away cron jobs dedema UNIX for Dummies Questions & Answers 2 09-13-2007 10:43 AM
Setting environment variables within cron jobs!! atheek SUN Solaris 1 10-09-2006 04:26 AM
cron jobs rmarral UNIX for Advanced & Expert Users 3 12-05-2005 08:59 AM
Cron Jobs dereckbc UNIX for Dummies Questions & Answers 6 01-19-2005 07:29 AM

Reply
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 11-06-2007
Registered User
 

Join Date: Sep 2007
Location: AIX-VILLE
Posts: 73
Listing and setting up cron jobs

How can I list the existing cron jobs in my system, and then how can I add my script to the cron jobs list? Thanks.
Reply With Quote
Forum Sponsor
  #2  
Old 11-06-2007
s4g3's Avatar
Registered User
 

Join Date: Nov 2007
Location: India
Posts: 43
Depends from system to system

crontab -l (lists all the jobs)

crontab -e (edits, make sure EDITOR is set)

~Sage
Reply With Quote
  #3  
Old 11-06-2007
Registered User
 

Join Date: Sep 2007
Location: AIX-VILLE
Posts: 73
Thumbs up

Thanks, crontab -e opens right up.
Reply With Quote
  #4  
Old 11-08-2007
Cameron's Avatar
Registered User
 

Join Date: Nov 2001
Location: Brisbane, Australia
Posts: 490
Whilst you can edit the crontab directly, you may want to consider keeping past versions.

Example:
UID=unixuser
  1. Logon as 'unixuser'
  2. cd $HOME
  3. crontab -l > $LOGNAME.crontab
  4. crontab -l > $LOGNAME.crontab.[yymmdd]

  5. vi $LOGNAME.crontab (update your crontab file)

  6. crontab $LOGNAME.crontab (uploads amended crontab file)
Just a suggestion.

Cheers,
Cameron
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 10:21 PM.


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

Content Relevant URLs by vBSEO 3.2.0