Skip to content
Permalink
8a29254656
Go to file
 
 
Cannot retrieve contributors at this time
executable file 10 lines (7 sloc) 368 Bytes
#!/bin/bash
CRONFILE=/opt/tier/tier-cron
echo "#send daily \"beacon\" to central" > ${CRONFILE}
echo $(expr $RANDOM % 60) $(expr $RANDOM % 4) "* * * /usr/local/bin/sendtierbeacon.sh >> /tmp/logcrond 2>&1" >> ${CRONFILE}
#echo "* * * * * /usr/local/bin/sendtierbeacon.sh >> /tmp/logcrond 2>&1" >> ${CRONFILE} # for testing
chmod 644 ${CRONFILE}
crontab ${CRONFILE}
You can’t perform that action at this time.