09-18-2014
How to list all crontab entries?
Hi,
1. How can I list all the crontab entries of all system users (like root, adm, sys etc.) as we have multiple files like /etc/crontab , /var/spool/cron, /etc/cron.d, /etc/cron.daily, /etc/cron.hourly, /etc/cron.monthly etc.
2. How can I list all the crontab entries of ALL users on a system?
TIA
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
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)
Discussion started by: minazk
6 Replies
2. Solaris
Hi all,
i want to know which file is updated after changes the modifications/new entries in crontab.
Please help regarding this.
regards
Krishna (1 Reply)
Discussion started by: krishna176
1 Replies
3. Shell Programming and Scripting
Hi,
I am wondering if anyone has got a script to extract information such as frequnecy, date, time, file, log file etc. from crontab and put in a csv or similar format.
Thanks
Raj (5 Replies)
Discussion started by: raj@au
5 Replies
4. Shell Programming and Scripting
Hi Friends,
I need to change crontab entries in prod.
$crontab -l -> using this i can see the entries only
Plese tell me how to edit this crontab and how to change the entires
Waiting for ......
Thanks In advance friends
Krish. (2 Replies)
Discussion started by: kittusri9
2 Replies
5. Solaris
hi guys. can someone tell me what will happen if there are two identical crontab entry for an application. For example
03 23 * * 1 /usr/vt/crondemo
03 23 * * 1 /usr/vt/crondemo
will the file crondemo run twice, once or wont run at all?? (2 Replies)
Discussion started by: vikashtulsiyan
2 Replies
6. Red Hat
Hi all
I have a problem where having multiple simultaneous startups in the crontab causes the entire server (running RHEL-AS3). Three process are set to be fired off at the same minute. Individually, they all start fine. As soon as they start via these cron jobs, the server halts. Doesn't turn... (2 Replies)
Discussion started by: alexandicity
2 Replies
7. Shell Programming and Scripting
Hi folks
I use a Solaris 10 box with Bash shell.
I have here a script (it works!) to list all scripts in crontab which contains the string "sqlplus":
for i in $(ls `crontab -l | grep -v '#' | awk '{ print $6 }' | grep -v '^$'`); do grep -l 'sqlplus' "$i"; done
Is there a more elegant... (1 Reply)
Discussion started by: slashdotweenie
1 Replies
8. UNIX for Dummies Questions & Answers
Hello All,
I am trying to put this line in Crontab (Linux box- x86_64), but the command is not running. Can you please help me out? My requirement is-
To find out the number of .csv files older than 1 day in directory /stage/landing. There are 2 other subdirectories under this directory... (6 Replies)
Discussion started by: NARESH1302
6 Replies
9. Shell Programming and Scripting
I have created a shell script "abcd.sh" and script should run after every 10 min., For that I will create below entry in the crontab file by using command crontab -e
*/10 * * * * /cdr/work/proc_raw/abcd.sh >> /dev/null 2>&1
I wish to know whether above entry is correct or I have to make entry... (2 Replies)
Discussion started by: Devesh5683
2 Replies
10. UNIX for Dummies Questions & Answers
How to edit crontab entries .
A job is scheduled as
35 15 * * * it.sh rahul_raj/hdhd
i want to change it as
45 15 * * * it.sh rahul_raj/hdhd
1.crontab -e
2.shift+g ---go to last line .press enter.Press <i> .
After this what should i do? (6 Replies)
Discussion started by: rafa_fed2
6 Replies
LEARN ABOUT REDHAT
crontab
CRONTAB(1) 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
Crontab 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.
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 <paul@vix.com>
4th Berkeley Distribution 29 December 1993 CRONTAB(1)