crontab deleted accidently


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers crontab deleted accidently
# 1  
Old 05-24-2004
Data crontab deleted accidently

I issued crontab -r accidently instead of crontab -e..n the crontab file got deleted..

is there a way to retrive it?:-(

thank youSmilie
# 2  
Old 05-24-2004
No special way. You will need to restore it from backup tape.
# 3  
Old 05-25-2004
just fyi...

I always keep a copy relatively safe...


crontab -l > tempcron

vi tempcron # edit it here

crontab tempcron

If you must:

cp tempcron tempcron.bak


As a rule, NEVER DIRECTLY EDIT CRONtab... It will save you some grief and sleep
# 4  
Old 05-27-2004
You need to re-create the crontab again... no other ways...
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. BSD

NetBSD Accidently deleted crontab for root

Someone can told me where from get the default crontab settings of root for NetBSD 6.0 please :) ### SOLVED ### The default crontab rules are in etc.tgz /var/cron/tabs/root # $NetBSD: crontab,v 1.15 2002/11/27 15:09:17 perry Exp $ # # /var/cron/tabs/root - root's crontab for NetBSD #... (0 Replies)
Discussion started by: batence
0 Replies

2. Shell Programming and Scripting

Accidently deleted /usr contents.

Hi I have the following code which was supposed to clean up a directory when the number of files in that directory exeeded 2.The code is given below. #!/usr/bin/ksh dir_num=`/usr/bin/find /var/.audit -type d | /usr/bin/wc -l` if then oldest_file=`/usr/bin/ls -1t | /usr/bin/tail... (19 Replies)
Discussion started by: chacko193
19 Replies

3. Shell Programming and Scripting

Algorithm to load files efficiently without missing or accidently archiving....

We have a requirement where we get the Delta Files in every one hour and we need to load them into Oracle database every one hour using Powercenter. To efficiently do this we need to build an File management system. Here is our process: we get 6 files for 6 tables with a timestamp appended... (2 Replies)
Discussion started by: okkadu
2 Replies

4. Programming

Client accidently close when the server crash

The steps to test the problem 1. Open TCP Server 2. Open TCP Client 3. TCP Client sends data to Server. 4. Close TCP Server and the client also crash without any notification Second wonderful test: 1. Comment the following statement in Client.c (at line 168) and compile it Writen(... (1 Reply)
Discussion started by: sehang
1 Replies

5. UNIX for Dummies Questions & Answers

Deleted the scripts in Crontab by mistake

hi, instead of typing crontab -e i gave crontab -r and hit enter. So i lost all my scripts. Is there any way to restore the deleted scripts? Please help me out Thanks Ajay (3 Replies)
Discussion started by: ajayakunuri
3 Replies

6. Shell Programming and Scripting

Last column is getting deleted

Hi, I am having a problem in the below code:-. $ cat x.csv baseball,NULL,8798765,Most played,0,5,12367,NULL,NULL,98,67,Reason is not sufficient baseball,NULL,8928192,Most played,0,4,76893,NULL,RAW,54,78,Reason is not sufficient baseball,NULL,5678945,Most played,9,2,1,6,NULL,6789,123,Reason... (4 Replies)
Discussion started by: scripter12
4 Replies

7. Shell Programming and Scripting

Who deleted crontab?

We are using SunOS 5.10 and Korn Shell. If we need to figure out who deleted our crontab file for a particular user what do we do. Thanks in Advance!! ---------- Post updated at 08:08 AM ---------- Previous update was at 07:19 AM ---------- Friends, Please help.... (5 Replies)
Discussion started by: mehimadri
5 Replies

8. IP Networking

Route deleted

I am running SCOUnix OpenServer 5.0.5. For some reason a route in my routing table is being deleted and I do not know why. As far as I can see, it is nothing obvious that is deleting the route. The rest of the table is fine, only one particular entry is being delete. I run S99routes to reestablish... (3 Replies)
Discussion started by: walkerd810
3 Replies

9. UNIX for Advanced & Expert Users

crontab entries deleted !!

Hi all, A friend of mine accidently erased all crontab entries by typing crontab -r. Can anyone pls. help me on this. Is it possible that a backup file is available other than files from the backup tape. Or is it retrievable ??? Thnx, MK (6 Replies)
Discussion started by: minazk
6 Replies
Login or Register to Ask a Question