29 Apr
2013
29 Apr
'13
16:11
lynn wrote: > On 29/04/13 17:03, Anton Aylward wrote: >> lynn said the following on 04/29/2013 10:53 AM: >>> 12.3 >>> I want to run a script every hour. I put it in /etc/cron.hourly >>> >>> Surely it can't be as simple as that. Is there a gotcha? >> * Did you make the script executable? (chmod +x) > Yes >> * Do you want to run it as root? > Yes > > Right that's good enough. Do you want to know/control at which time it is being run? > I'm going for it. It's just a pity you can't like 'LDAP' this sort of > stuff over to all the clients in one fell swoop. Thanks, Provided you have a password-less ssh-setup for accessing all clients, this is what I would do: for i in clients* do rsync newcronfile $i:/etc/cron.d done I have a number of such schemes where configs are distributed to multiple clients. If you have a LOT of clients and speed matters, there is also nettee and/or dolly. -- Per Jessen, Zürich (12.6°C) http://www.dns24.ch/ - free DNS hosting, made in Switzerland. -- To unsubscribe, e-mail: opensuse+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse+owner@opensuse.org