[BNM] *n?x : cron management question

Stephen Ticehurst sticehurst at jtsr.co.uk
Tue Dec 12 09:42:28 GMT 2006


I'm not sure about a cmd that will do it all in one go, but if I was going to do it then I would use the following cmds in borne/bash shell.    This grabs the names out of the passwd file and then runs crontab to list for that user.   

for t in `awk -F: '{printf "%s\n",$1}' /etc/passwd`; do crontab -l -u $t; done



Steve





* Pete Dowdell (contact at stridebird.com) wrote:
> As root, I think it would be pretty useful to be able to see all the 
> cron jobs set up for all users on a system.
> 
> I can't find a command to do that, other than building a command line 
> pipe or script to process /etc/passwd and pass that to crontab.
> 
> There must be an easier way to do this!  Is there?  Can anyone help out?
> 
> Thanks,  pete
> 
> -- 
> 
> BNM info/subscription/archives: http://www.brightonnewmedia.org/
> 
> BNM archive search: http://www.roddis.org/bnm/search.php
> BNM Del.icio.us tag: http://del.icio.us/tag/bnm/
> BNM Flickr group: http://www.flickr.com/groups/bnm/
> 
> BNM powered by http://www.screen-play.net/

-- 

Stephen Ticehurst
sticehurst at jtsr.co.uk    http://www.moleville.co.uk/



More information about the BNMList mailing list
BNMList is hosted by Screenlists, a Screen-Play.net service