Sponsored Content
Full Discussion: mistakenly issued crontab -r
Top Forums UNIX for Advanced & Expert Users mistakenly issued crontab -r Post 20064 by mikek147 on Friday 19th of April 2002 02:35:47 PM
Old 04-19-2002
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

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers


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


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


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


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


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


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
CRON(8) 						      System Manager's Manual							   CRON(8)

cron - daemon to execute scheduled commands (Vixie Cron) SYNOPSIS
Cron should be started from /etc/rc or /etc/rc.local. It will return immediately, so you don't need to start it with '&'. Cron searches /var/spool/cron for crontab files which are named after accounts in /etc/passwd; crontabs found are loaded into memory. Cron also searches for /etc/crontab and the files in the /etc/cron.d/ directory, which are in a different format (see crontab(5)). Cron then wakes up every minute, examining all stored crontabs, checking each command to see if it should be run in the current minute. When execut- ing commands, any output is mailed to the owner of the crontab (or to the user named in the MAILTO environment variable in the crontab, if such exists). Additionally, cron checks each minute to see if its spool directory's modtime (or the modtime on /etc/crontab) has changed, and if it has, cron will then examine the modtime on all crontabs and reload those which have changed. Thus cron need not be restarted whenever a crontab file is modified. Note that the Crontab(1) command updates the modtime of the spool directory whenever it changes a crontab. SEE ALSO
crontab(1), crontab(5) AUTHOR
Paul Vixie <paul@vix.com> 4th Berkeley Distribution 20 December 1993 CRON(8)

Featured Tech Videos

All times are GMT -4. The time now is 07:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy