crontab info

Ben Steeves bcs at metacon.ca
Mon Jan 26 23:45:47 UTC 2004


On Mon, 2004-01-26 at 19:33, Yohann Desquerre wrote:
> Hi all,
> 
> 
> I wonder if is there any way to get the crontab of all the user of a
> system ???

This isn't perfect, but it'll do the job...

$ perl -e 'while (($name) = getpwent) { print "Crontab for: $name\n";
print `crontab -l -u $name`; print "-" x 80; }' > crontabs.txt

-- 
Ben Steeves                     _                    bcs at metacon.ca
 The ASCII ribbon campaign     ( )               ben.steeves at unb.ca
   against HTML e-mail          X                GPG ID: 0xB3EBF1D9
http://www.metacon.ca/ascii    / \     Yahoo Messenger: ben_steeves





More information about the fedora-list mailing list