crontab -l >/somewhere/hci.cron
cd /somewherecp -p hci.cron hci.cron_2013.05.23_russvi hci.croncrontab hci.cron
su hci -c 'crontab -r'
su hci -c 'crontab /somewhere/hci.cron'
Originally posted by Eric Fortenberry
# This is the inactive version of a crontab that is loaded on# the inactive node of the Cloverleaf cluster.# DO NOT DELETE THIS CRON ENTRY OR FILE!!!!!!# If the active crontab is available (and thus this node is active), load the active crontab.* * * * * test -f /clovermisc/cronsync/crontab.active && cp -p /clovermisc/cronsync/crontab.active /clovermisc/cronsync/crontab.loaded.$(date "+%Y%m%d%H%M%S") && crontab /clovermisc/cronsync/crontab.active
########################################## Crontab syncing b/w cluster nodes########################################## Load the inactive crontab if the active crontab can't be found* * * * * test -f /clovermisc/cronsync/crontab.active || crontab ~/crontab.inactive# Dump the active crontab in case of change* * * * * test -d /clovermisc/cronsync && crontab -l > /clovermisc/cronsync/crontab.active