Re: cron & file permissions

2012-07-20 Thread Bob Proulx
Mike McClain wrote: > man cron says: > 'In general, the admin should not use /etc/cron.d/, but use the > standard system crontab /etc/crontab.' I can only most strongly disagree with that sentiment! :-) I hadn't ever seen that message before. Considering the fact that Paul Vixie hasn't release

Re: cron & file permissions

2012-07-20 Thread Mike McClain
Hi Bob, OK I'll try it but have a question. On Fri, Jul 20, 2012 at 01:28:04PM -0600, Bob Proulx wrote: > Mike McClain wrote: > > ... and haven't seen any way to get files in /etc/cron.d/ run at > > specific times. > > The format of the /etc/cron.d/ files is the same format as the > /etc/cro

Re: cron & file permissions

2012-07-20 Thread Bob Proulx
Bob Proulx wrote: > # Run mylocalscript every hour. > 0 17 * * * root /usr/local/bin/mylocalscript That is what I get for constructing an example in a rush. Obviously that comment doesn't match. Oh well. You get the idea. Bob signature.asc Description: Digital signature

Re: cron & file permissions

2012-07-20 Thread Bob Proulx
Mike McClain wrote: > ... and haven't seen any way to get files in /etc/cron.d/ run at > specific times. The format of the /etc/cron.d/ files is the same format as the /etc/crontab. Whatever lines you would put into /etc/crontab you would simply put into a file in /etc/cron.d instead. No differe

Re: cron & file permissions

2012-07-20 Thread Mike McClain
Hi Bob, On Wed, Jul 18, 2012 at 04:32:03PM -0600, Bob Proulx wrote: > Mike McClain wrote: > > I've a cron job run daily from /etc/crontab, > > Instead of using the BSD-style interface let me strongly encourage you > to start using the newer Vixie-cron-style interface of /etc/cron.d/ > where t

Re: cron & file permissions

2012-07-19 Thread Mike McClain
Hi Chris, On Thu, Jul 19, 2012 at 12:06:33PM +0100, Chris Davies wrote: > Mike McClain wrote: > > /mc/bin/daily sets umask > > umask 037 # save files rw owner, group read only > > > then runs a script like so: > > [ -e /mc/bin/secure ] && /mc/bin/secure 2>&1 | tee /root/s

Re: cron & file permissions

2012-07-19 Thread Chris Davies
Mike McClain wrote: > /mc/bin/daily sets umask > umask 037 # save files rw owner, group read only > then runs a script like so: > [ -e /mc/bin/secure ] && /mc/bin/secure 2>&1 | tee /root/sysstats/secure.log You want the output to go to the cron email as well as to the log

Re: cron & file permissions

2012-07-18 Thread Bob Proulx
Mike McClain wrote: > I've a cron job run daily from /etc/crontab, Instead of using the BSD-style interface let me strongly encourage you to start using the newer Vixie-cron-style interface of /etc/cron.d/ where they can be separate and individual files. That way the file can be dropped into