DEMP tasks executed in background


dempdemon alias
PERL script dempd.pl
task-specific PERL scripts
PERL script rununix.pl
dempdemon alias

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.


PERL script dempd.pl

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.


task-specific PERL scripts
PERL script rununix.pl

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.


back to Web interface to DEMP (Density Equalizing Map Projections)
http://parep2.lbl.gov/mpub/cgibin/background.html 1/14/97
/CEDRCD/data1/merrill/cgibin/background.html
dwmerrill@lbl.gov