#!/bin/tcsh cd $0:h cvs -q update crontabs cd crontabs foreach x (*.txt) ssh $x:r crontab -l >& $x end # -q helps some. It prevents cvs from listing directories. It still prints # a log to the standard output if something is committed. cvs -q commit -m "Automatic update from $0" >>/tmp/crontab_submit_log.txt # Note: This always gets its list of machines from crontabs/*.txt. If you # want to add a new machine, # * cd crontabs/ # * touch new_machine_name.txt # * cvs add new_machine_name.txt # * cvs commit # You can test this by running the script immediately.