#!/bin/csh -f # I know it is lame to make a script that calls another script but I like using setlock -n to handle my lockfile # instead of doing my own lockfile handling and setlock requires a single child process. setlock -n /tmp/power_cable_modem.lockfile /root/bin/power_cable_modem.csh || exec echo "Could not lock lockfile." rm -f /tmp/power_cable_modem.lockfile