#!/usr/bin/tcsh -f # set echo verbose # If debugging, remove the # at the start of this line # Script to execute interactive commands during login. See script # startup for setup instructions. # check setup and move into desktop cd cd Desktop if (`pwd` != "$HOME/Desktop") exit 1 if !(-d ../Desktop_saved) exit 1 # restore the moved files to the desktop if (`ls -1 ../Desktop_saved |wc -l` != 0) then mv ../Desktop_saved/* . endif # move the Run Me icon out of the way if (-f startup2.desktop) mv startup2.desktop ../Desktop_saved/ # go to the home folder cd ########################################################################## # Interactive commands to be executed: # End of interactive commands ########################################################################### # Produce a warning if there are failed backup notices cd if !(-d Desktop) goto endwarn if (`find Desktop -name '*_FAILED' | wc -l` == 0) goto endwarn echo -n "\a*** WARNING: Failed backups\! Press Enter to acknowledge: " set ans="$<" endwarn: # exit echo -n "End of startup script. Press Enter to exit: " set ans="$<"