08-17-2005
crontab file
Does any know if crontab files are automatically backed up anywhere? I am trying to track down when I specific entry was added to one of my crontab files and cannot just use the most recent timestamp on the latest version of the file.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
hello Unix Guru's
I need help to write crontab ..
i want to run my script everyday . It should start after 12:00 midnight everyday .
But on Friday i dont want to start that script at 12:00 midnight but want to start after 3:00 a.m .
any way to write cronttab like this ..
my... (4 Replies)
Discussion started by: deepa20
4 Replies
2. Shell Programming and Scripting
I need help writing a script that will reformat a crontab file. The first thing the script is doing is a crontab -l > crontab.txt. I need the crontab.txt file to read "8.00 PM every weekday (Mon-Fri) only in Oct." instead of the orig format "0 20 * 10 1-5" (1 Reply)
Discussion started by: alnita
1 Replies
3. Shell Programming and Scripting
Hi All,
There are some cron jobs scheduled already by someone, now I have to make some changes to the schedule timings. Please advise me.
thanks,
Raju (2 Replies)
Discussion started by: rajus19
2 Replies
4. UNIX for Advanced & Expert Users
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... (7 Replies)
Discussion started by: mradsus
7 Replies
5. UNIX for Dummies Questions & Answers
I have a crontab file called /var/spool/cron/root with these contents. When I use the command, crontab -l, these are the contents which are displayed.
HOME=/
MAILTO=maintenance@mycompany.com; robl@mycompany.com
PATH=/sbin:/bin:/usr/sbin:/usr/bin
SHELL=/bin/bash
##run-parts... (2 Replies)
Discussion started by: bobble14988
2 Replies
6. Shell Programming and Scripting
Hello,
I am new to shell scripting. I need to write a shell script where i can grep the name of file ie. .sh file and log file from crontab -l.
#51 18 * * * /home/oracle/refresh/refresh_ug634.sh > /home/oracle/refresh/refresh_ug634.sh.log 2>&1
#40 17 * * * /home/oracle/refresh/refresh_ux634.sh... (1 Reply)
Discussion started by: guptra
1 Replies
7. UNIX for Dummies Questions & Answers
Hey out there. I have a .sh file I am calling from cron that I am trying to use to shut down the app at midnight. I have a file that does it and works just fine if I run it by typing "bash crontabstop.sh" from a command prompt. But if I call the file from a crontab I get this output.... (5 Replies)
Discussion started by: vsekvsek
5 Replies
8. Solaris
Hi guys,
I edited my crontab file and entered this enter:
* * * * * w >> `date +%F`.who
Then I later deleted the above entry and entered :
* * * * * w >> /rpool/who/w.txt
when I login and ran : crontab -e
I get this entry:
* * * * * w >> `date +%F`.who
Instead of this entry:
*... (3 Replies)
Discussion started by: cjashu
3 Replies
9. UNIX for Dummies Questions & Answers
Hi,
I have a solaris 10 box. And I want to schedule a cronjob.But it gives the following error
bash-3.2$ crontab -l
crontab: can't open your crontab file.
bash-3.2$ EDITOR=vi
bash-3.2$ export EDITOR
bash-3.2$ crontab -e
crontab: can't open your crontab file.
I checked in... (12 Replies)
Discussion started by: Rossdba
12 Replies
10. UNIX for Advanced & Expert Users
I keep getting the crontab No such file or directory error message.
0,30,31,32,33,34,35,36,37,38,39,40 * * * * "/bin/ps aux --sort -\%mem >> /home/m/bob/cookies"
I have made sure my directory exists.
find /home/m/bob -iname 'cookies' 2>/dev/null
/home/m/bob/cookies
I am using the full... (3 Replies)
Discussion started by: cokedude
3 Replies
CRONTAB(1) General Commands Manual CRONTAB(1)
NAME
crontab - maintain crontab files for individual users (ISC Cron V4.1)
SYNOPSIS
crontab [-u user] file
crontab [-u user] [-l | -r | -e]
DESCRIPTION
Crontab is the program used to install, deinstall or list the tables used to drive the cron(8) daemon in ISC 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 cron.allow file exists, then you must be listed therein in order to be allowed to use this command. If the cron.allow file does not
exist but the cron.deny file does exist, then you must not be listed in the cron.deny file in order to use this command. If neither of
these files exists, only the super user will be allowed to use this command.
If the -u option is given, it specifies 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(8) can confuse crontab and that if you are running
inside of su(8) you should always use the -u option for safety's sake.
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 -l option causes the current crontab to be displayed on standard output.
The -r option causes the current crontab to be removed.
The -e option is used to edit the current crontab using the editor specified by the VISUAL or EDITOR environment variables. After you exit
from the editor, the modified crontab will be installed automatically.
SEE ALSO
crontab(5), cron(8)
FILES
/etc/cron.allow
/etc/cron.deny
STANDARDS
The crontab command conforms to IEEE Std1003.2-1992 (``POSIX''). This new command syntax differs from previous versions of Vixie Cron, as
well as from the classic SVR3 syntax.
DIAGNOSTICS
A fairly informative usage message appears if you run it with a bad command line.
AUTHOR
Paul Vixie <vixie@isc.org>
4th Berkeley Distribution 29 December 1993 CRONTAB(1)