Sponsored Content
Full Discussion: mistakenly issued crontab -r
Top Forums UNIX for Advanced & Expert Users mistakenly issued crontab -r Post 20037 by kanang on Friday 19th of April 2002 10:43:08 AM
Old 04-19-2002
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)
Smilie

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

Thank you.
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

crontab

Hi I have a shell script which works fine at the command line and does works in crontab also but does not send the output to mail as other scripts do by default. 10 1 * * * /export/home/test/report_script by default should send the output to mail but the script runs OK and the output... (1 Reply)
Discussion started by: run_time_error
1 Replies

2. UNIX for Dummies Questions & Answers

crontab help

Hi All, Please help me in understanding the crontab entries and also below queries 1. how can we set a crontab entry 2. from where the cronjob will run( if default) 3. you can we specify the location from which the cronjob should run. 4. how can we capture the output of the cronjob. ... (8 Replies)
Discussion started by: thaduka
8 Replies

3. UNIX for Dummies Questions & Answers

Crontab

How can I run "crontab" (parameters) every 6 hours on solaris machine? Thanks (1 Reply)
Discussion started by: gen4ik
1 Replies

4. UNIX for Advanced & Expert Users

Capture of all commands issued by the user “root”

I have to write a script (not C based) that allows to capture of all commands issued by the user “root”. First, I tried to monitor the .bash_history but the commands are written in chunk after the .bash_history is closed. How can I capture the commands in Real-Time without waiting root to... (4 Replies)
Discussion started by: elieifrah@gmail
4 Replies

5. HP-UX

Crontab

Is it possible to add a line to a crontab to so that a program will run every 15 minutes? how will this line look? Thank you. (10 Replies)
Discussion started by: NicoMan
10 Replies

6. Solaris

crontab

Hi I have an entry in the cron file. 10 3 * * * /usr/bin/test.sh I want to change it to: 00 11 * * * /usr/bin/test.sh how to do this without entering the crontab file and edit the change? thank you (5 Replies)
Discussion started by: melanie_pfefer
5 Replies

7. UNIX for Advanced & Expert Users

Mistakenly renamed libdl.so: system got corrupted

Hi, I am using Ubuntu 8.04 64-bit (Hardy Heron LTS Desktop edition) OS on a 64-bit intel hardware (x86_64). I have wrongly renamed the /lib64/libdl-2.7.so shared library file and now hardly few commands are working. My Gnome UI display has gone and I could not establish any new connection via... (12 Replies)
Discussion started by: royalibrahim
12 Replies

8. AIX

Crontab

How can i schedule a batch job/script to run every minute every day? Thanks (3 Replies)
Discussion started by: mrn6430
3 Replies

9. Shell Programming and Scripting

Query on (standard input) messages being issued by script

Hi. I'm working in an IBM mainframe UNIX environment and am running a script as follows: for i in `find . -name *.xml -type f` do test -f $i && iconv -f IBM-932 -t IBM-1047 $i | egrep -l $1 && echo $1" found i n" $i "searching as ASCII" done The idea is to locate all *.xml files... (3 Replies)
Discussion started by: neilrhysjenkins
3 Replies

10. UNIX for Dummies Questions & Answers

Crontab

how can i create a personal entry for "user1" that creates a compressed version of the directory home/user1 every tuesday at 8.30pm and ensure the compressed version is forwarded to the users home directory ? thanks (1 Reply)
Discussion started by: erve1986
1 Replies
CRONTAB(1)						    BSD General Commands Manual 						CRONTAB(1)

NAME
crontab -- maintain crontab files for individual users (V3) SYNOPSIS
crontab [-u user] file crontab [-u user] { -l | -r | -e } DESCRIPTION
The crontab utility is the program used to install, deinstall or list the tables used to drive the cron(8) daemon in Vixie Cron. Each user can have their own crontab, and though these are files in /var, they are not intended to be edited directly. If the allow file exists, then you must be listed therein in order to be allowed to use this command. If the allow file does not exist but the deny file does exist, then you must not be listed in the deny file in order to use this command. If neither of these files exists, then depending on site-dependent configuration parameters, only the super user will be allowed to use this command, or all users will be able to use this command. The format of these files is one username per line, with no leading or trailing whitespace. Lines of other formats will be ignored, and so can be used for comments. The first form of this command is used to install a new crontab from some named file or standard input if the pseudo-filename '-' is given. The following options are available: -u Specify the name of the user whose crontab is to be tweaked. If this option is not given, crontab examines ``your'' crontab, i.e., the crontab of the person executing the command. Note that su(1) can confuse crontab and that if you are running inside of su(1) you should always use the -u option for safety's sake. -l Display the current crontab on standard output. -r Remove the current crontab. -e Edit the current crontab using the editor specified by the VISUAL or EDITOR environment variables. The specified editor must edit the file in place; any editor that unlinks the file and recreates it cannot be used. After you exit from the editor, the modified crontab will be installed automatically. FILES
/var/cron/allow List of users allowed to use crontab /var/cron/deny List of users prohibited from using crontab /var/cron/tabs Directory for personal crontab files DIAGNOSTICS
A fairly informative usage message appears if you run it with a bad command line. SEE ALSO
crontab(5), cron(8) STANDARDS
The crontab command conforms to IEEE Std 1003.2 (``POSIX.2'') with the exception that the dangerous variant of calling crontab without a file name in the first form of the command is not allowed by this implementation. The pseudo-filename '-' must be specified to read from standard input. The new command syntax differs from previous versions of Vixie Cron, as well as from the classic SVR3 syntax. AUTHORS
Paul Vixie <paul@vix.com> BSD
May 13, 2010 BSD
All times are GMT -4. The time now is 02:45 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy