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]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux