Re: cron

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 14Feb2007 20:30, James Wilkinson <fedora@xxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxx> 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


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux