cms_versions 343 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11
#! /bin/sh

FILENAME=/var/alternc/cms-versions.csv

# do not launch script if there is already too much load on the machine
if [ $(cut -d. -f1 /proc/loadavg) -ge 3 ]; then exit 0; fi

echo "# Hourly generated, using /usr/local/sbin/cms-versions.py" > $FILENAME.t
python /usr/local/sbin/cms-versions.py >> $FILENAME.t
mv $FILENAME.t $FILENAME