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
Help regarding crontab tkbharani UNIX for Advanced & Expert Users 3 08-20-2007 03:55 AM
Capture of all commands issued by the user “root” elieifrah@gmail UNIX for Advanced & Expert Users 4 03-19-2007 07:55 AM
Crontab gen4ik UNIX for Dummies Questions & Answers 1 01-18-2007 04:26 AM
crontab in AIX smallbook AIX 25 12-05-2006 01:50 AM
Crontab thumsup9 UNIX for Dummies Questions & Answers 2 02-14-2005 09:40 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Search this Thread Display Modes
  #1  
Old 04-19-2002
Registered User
 

Join Date: Dec 2001
Location: kuala lumpur
Posts: 21
mistakenly issued crontab -r

HPUX 11 (32bit)

An ordinary user (not root) had mistakenly issued "crontab -r" which removed the crontab file corresponds to his user_id. (well, on our keyboard R is next E, where "crontab -e" is to edit the crontab file)


Is there any way to recover the removed crontab file by that command?

Thank you.
Forum Sponsor
  #2  
Old 04-19-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,667
There is nothing special for this exact situation. You will need to recover the crontab from a backup tape.
  #3  
Old 04-19-2002
Registered User
 

Join Date: Feb 2002
Posts: 28
I would also like to add that when you do get your crontab file back, you cd /var/spool/cron/crontabs. The files you see in there are the crontab files currently running, one per cron user, i.e. root, adm, mail uucp, etc... You don't want to touch them in any way, but I would recommend that you save a copy of them somewhere safe, just for this type of eventuality. -mk
__________________
If it aint broke,
Fix it till it is.
Google The UNIX and Linux Forums
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes




All times are GMT -7. The time now is 09:18 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