#!/bin/csh ############################################################### # This script resumes the currently-playing sox program, which # is what the 'play' command calls. It is meant to be used # after the musicbox_pause.txt script has been used to pause # play. ############################################################## # The -C tells it to list processes by command. The -o sets # the output format, with the = meaning no header. set directory = `musicbox_state_directory.txt` rm -f "$directory"/paused set jobid = `ps -C sox -o pid=` if ( $jobid > 0 ) then kill -CONT $jobid >& /dev/null endif exit 0