cron
Cameron Simpson
cs at zip.com.au
Wed Feb 14 22:21:43 UTC 2007
On 14Feb2007 20:30, James Wilkinson <fedora at aprilcottage.co.uk> wrote:
| eng.waleed wrote:
| > How to see the cron of all users
| cat /var/spool/cron/*
| or (more advanced)
| cd /var/spool/cron || exit
| for i in *
| do echo $i\'s crontab
| cat $i
| done
|
| Or other variants to your taste.
I'm fond of:
cd /var/spool/cron
grep . * /dev/null
which neatly prefixes all the files with the login name (the filename).
The /dev/null is a hack to make grep do the prefixing even if there's
only one file from the "*" (by making grep see two files - that file and
/dev/null).
Cheers,
--
Cameron Simpson <cs at zip.com.au> DoD#743
http://www.cskk.ezoshosting.com/cs/
I have come here to chew bubblegum and kick ass, and I'm all out of
bubblegum. - Roddy Piper
More information about the fedora-list
mailing list