Example of a script to automatically bring the study server up
Below is an example of a script that will automatically bring the study server up:
#!/bin/csh# CSH script to start up Survox Study Server#set usage = "USAGE: servup.csh <CFMC variable>"# Cron example to run servup.csh from /cfmc/bin/ in /cfmc/rel7.6/ # environment at 01:10am# 10 01 * * * /cfmc/bin/servup.csh /cfmc/rel7.6/ # Use "-ef" if not using linuxset psopt = auxw # "-ef"if ( $#argv != 1 ) thenecho "Bad Arguments: $usage"exit(0)endifset out = "/tmp/sc$$.out"setenv CFMC $1set path=($path ${CFMC}go)if ( ! -e "${CFMC}go/server") thenecho "Sorry, there's no server script in ${CFMC}go/"exit(0)endifsetenv CFMCCFG ${CFMC}ipcfiles/set sbegin=`ps $psopt