They are definitely lost...
active/current cron files reside usually in /var/spool/cron/crontabs, so unless you have a backup, you are in bad position...
So this may teach you that next time, you create a cronfile somewhere in the user home directory or for root somewhere safe ( I use a /sm full of subdirectories...) and load it with
Unless you have urgent modification to do, you avoid the use of crontab -e, and edit the original file - you can even compare by using
This prevents you to loose it if an admin has to suddenly in a panic, for maintenance stop the scheduler and removes all files in the above mentioned directory (and dont think it never happens I saw it a few times...)
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)
Hi. I hope someone can help me with this problem.
Being a novice to Unix, I editted my crontab directly
by typing " crontab -e ". Well, I needed to make some
changes so, I typed " crontab -r ". Now I have no crontab,
and I can't seem to get crontab to write a new file.
I' ve tried:
vi... (4 Replies)
hi,
I have scripts which are running every 3 minutes. The scripts include connection to a database, using sqlplus. Sometimes, the connection fails (invalid username or password, locked user etc..) and the connection returns the error code, to the unix screen or to a file.
I want whenever there's... (2 Replies)
when i run the scripts from command line like
php ./file.php they run fine and it ends.
But i have them running in crontab every 5 minutes and they sometimes dont close. Can i write something to log why or force them to close after a certain amount of time by killing the pid? (2 Replies)
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)
hi,
i need to run one script in cron...
in that script has connect antoher server and doing sftp for file transfer to another script.
and going to be run another script in another server
ssh ravikus\@server2 /export/home/ravikus/scripts/GetDetailsC2b.sh
it is work fine when i run... (6 Replies)
I'm trying to create a crontab that runs every hour and runs a script in my $HOME/bin directory.
Everytime it goes to run it I get this mail.
Message 14:
From root@xx.xxxx.edu Thu Apr 12 14:03:01 2012
Return-Path: <root@xx.xxxx.edu>
X-Original-To: bbowers
Delivered-To:... (4 Replies)
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)
Hi,
I have a query related to UNIX Crontab scripts -
Issue: Server space on the db server got 100% full as a result of which the cron scripts did not run. The space utilization issue got resolved in the afternoon. The crons scheduled for a time post the resolution caught up. However the... (1 Reply)