#!/bin/csh ############################################################### # This script checks to see if we are paused. If so, it resumes. # If not, it pauses. It coordinates the state with the pause # and resume programs because they create and delete a "paused" # file in the state directory when they run. ############################################################## set directory = `musicbox_state_directory.txt` if (-e "$directory"/paused) then musicbox_resume.txt else musicbox_pause.txt endif exit 0