Crontab file

Tags
advanced, cron, file

Login to Reply

 
Thread Tools Search this Thread
# 1  
Old 07-28-2008
Crontab file

Hi All,
I created a crontab entry in a cron.txt file accidentally entered
crontab cron.txt.

Now my previous crontab -l entries are not showing up, that means i removed the scheduling of the previous jobs by running this command "crontab cron.txt"

How do I revert back to previously schedule jobs.
Please help. this is urgent.,
Thanks.
# 2  
Old 07-28-2008
Restore the crontab for this user from your backup.
# 3  
Old 07-28-2008
I dont know where is the crontab file locatedfor the scheduled jobs.
If I can do it from the backups, can you give me the commands.
# 4  
Old 07-28-2008
There are no special commands for that. Just read old backup crontab and put it in,
Code:
crontab -e

and save it.
# 5  
Old 07-28-2008
I dont know where the old backup of crontab is located.
How to find it.
# 6  
Old 07-28-2008
Ask your sys admin to restore it for you.
# 7  
Old 07-28-2008
Try to go to /tmp and do

Code:
ls -ltr cron*

Then will appear kind a history of the cron, see the creation dates an look into the one you want. For example I have:

Code:
usuario: > cd /tmp/
usuario: /tmp > ls -ltr cro*
-rw-------   1 ecopge   ecuador      859 Jul 25 08:33 crontabJhaiKP
-rw-------   1 ecppga   ecuador        0 Jul 28 16:00 croutFNZCuVqsb

I already modify my crontab file, it is into croutFNZCuVqsb but my last crontab file is into [B]crontabJhaiKP[B].

try it and let me know how are you going.
Login to Reply

|
Thread Tools Search this Thread
Search this Thread:
Advanced Search

Similar Threads More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Crontab No such file or directory cokedude UNIX for Advanced & Expert Users 3 10-17-2015 12:18 AM
Not able to edit crontab file Rossdba UNIX for Dummies Questions & Answers 12 06-03-2014 08:21 PM
Crontab file issue cjashu Solaris 3 02-23-2013 12:29 PM
Crontab Job Output File famasutika Shell Programming and Scripting 2 01-07-2013 06:52 AM
crontab and calling a .sh file vsekvsek UNIX for Dummies Questions & Answers 5 09-19-2012 04:34 PM
Shell Script to grep Job File name and Log File name from crontab -l guptra Shell Programming and Scripting 1 09-08-2012 01:10 AM
Problem with crontab file bobble14988 UNIX for Dummies Questions & Answers 2 08-10-2011 10:21 AM
Editing a cron file with crontab Ultrix UNIX for Dummies Questions & Answers 6 03-04-2010 02:43 PM
Question about crontab file! shipon_97 Red Hat 2 10-14-2009 04:23 PM
error in file writing in crontab capri_drm Shell Programming and Scripting 2 10-02-2009 04:26 PM
Where is the crontab file stored rajbptl UNIX for Advanced & Expert Users 3 01-18-2008 09:46 AM
How to edit the crontab file rajus19 Shell Programming and Scripting 2 05-25-2007 09:34 AM
Reformat Crontab file alnita Shell Programming and Scripting 1 04-11-2007 03:28 AM
need help to write crontab file deepa20 Shell Programming and Scripting 4 02-06-2006 08:34 AM
crontab file mclaughline Filesystems, Disks and Memory 1 08-17-2005 11:21 PM
All times are GMT -4. The time now is 01:53 PM.

Unix & Linux Forums Content Copyright 1993-2018. All Rights Reserved.
UNIX.COM Login
Username:
Password:  
Show Password





Not a Forum Member?
Forgot Password?