crontab update

Larry Wall lwall at jato.Jpl.Nasa.Gov
Thu Mar 1 05:28:23 AEST 1990


In article <EMV.90Feb28121501 at duby.math.lsa.umich.edu> emv at math.lsa.umich.edu (Edward Vielmetti) writes:
: This is OK but -- I have a bunch of diskless machines with their
: crontab files all mounted via NFS from a server.  To update the whole
: batch I need to log in to every machine and run 'crontab' -- if
: I could automate the procedure somewhat I'd like to.

I suggest you check out the gsh program that comes with perl.  It (and gcp
and ged) will let you do things on sets of machines.

gsh all 'crontab -l >/tmp/crontmp'
ged all /tmp/crontmp
s/daily/weekly/;
^D
gsh all 'crontab /tmp/crontmp'

Larry Wall
lwall at jpl-devvax.jpl.nasa.gov



More information about the Comp.unix.questions mailing list