For user merrill the following alias is defined:
alias /CEDRCD/data1/merrill/cgibin/batch/dempd.pl
so that the PERL script dempd.pl is executed by user merrill.
This PERL script uses the area name ($area) to store several area-specific arrays containing names of population variables (@popnames), population labels (@poplabels) etc.
dempd.pl invokes a PERL script whose name corresponds to whattocalc, viz. cl4orig.pl, cl4demp.pl, etc. It opens a temporary log file TO DWM which is mailed to user merrill upon the completion of the task. It opens the file in /tmp/merrill obtains the necessary input variables, and executes the specified task.
This PERL script runs the UNIX script in /tmp/merrill/{$runid}.csh Tests that file $outfile is in place and non-zero. If so, removes /tmp/merrill/{$runid}.csh and {$runid}.tmp. Prints success or failure message.