The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Advanced & Expert Users
Google UNIX.COM


UNIX for Advanced & Expert Users Advanced UNIX and Linux questions go here. Expert-to-Expert.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
crontab couldn't run through, help duke0001 UNIX for Advanced & Expert Users 10 02-06-2008 12:22 AM
help with crontab bob122480 Shell Programming and Scripting 3 01-22-2007 05:49 PM
Crontab gen4ik UNIX for Dummies Questions & Answers 1 01-18-2007 04:26 AM
ftp and crontab user` Shell Programming and Scripting 27 11-13-2006 05:02 PM
Crontab lo-lp-kl UNIX for Dummies Questions & Answers 2 05-05-2005 03:21 PM

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

Join Date: Jan 2007
Posts: 41
Help regarding crontab

Dear All
jobs are scheduled in crontab . To view this I use crontab -l . But suddenly today I am not able to see any jobs that is being scheduled in crontab. when I type crontab -l , I am seeing nothing.I am not logging through admin user(i dont have it).But I can schedule jobs through crontab.
1. WHY this ?
2. Is there any way to recover scheduled jobs in crontab ?


Thanks
TKB
Reply With Quote
Forum Sponsor
  #2  
Old 08-16-2007
blowtorch's Avatar
Supporter
 
Join Date: Dec 2004
Location: Singapore
Posts: 2,328
tkbharani, most likely, your crontab file has been truncated/removed. You can check that by using 'ls -l /var/spool/cron/crontabs/your_user_name'. This will show whether your file exists and is zero bytes or doesn't exist at all (though I think that it would give you a different message in that case).

Regarding restoration of the file, you will have to talk to the administrators. They should be able to restore this from any OS backup.
Reply With Quote
  #3  
Old 08-18-2007
Registered User
 

Join Date: Jan 2005
Posts: 24
hi

Quote:
Originally Posted by tkbharani View Post
Dear All
when I type crontab -l , I am seeing nothing.
...
1. WHY this ?
TKB
my favourite approach to clear my crontab is to type

Code:
crontab -e
instead of
Code:
crontab -l
and aborting this command with Ctrl-D instead of Ctrl-C
perhaps you did this.
mfg guenter
Reply With Quote
  #4  
Old 08-20-2007
Registered User
 

Join Date: Feb 2001
Location: Frankfurt Germany
Posts: 61
Hi

With the crontab I would use it by making a file. Make a crontab file in your home dir. Then you can allways restore it when your crontab is missing.

vi crontab.yourname

finished. give this command ...

crontab crontab.yourname

Then is your crontab active from that file..

to remove a crontab ....


crontab -r

Problems can accure when use "crontab -e" sometime changes are not made. when you are in the edite mode. So all ways check after changes.
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 09:55 AM.


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