Running batches on Linux
You need to create a shell script which invokes HTML5 application in batch mode. This script can be run from a CRON job to run the batches automatically. The following is a sample.
#!/bin/sh
DLC=${DLC-/usr/dlc102b};export DLC
PROEXE=${PROEXE-$DLC/bin/_progres}
ICU_DATA=${ICU_DATA-$DLC/lib/icu/data/};export ICU_DATA
PROPATH=/home/xfiles/rr/xfiles.pl:/home/xfiles/xfiles/xx-loc:/home/xfiles/xfiles/rr/xfiles.pl;export PROPATH
# Set the Progress Shared lib environment
. $DLC/bin/slib_env
PS1='$$ ';export PS1#!echo date Batch processing will be performed using: $PROPATH
trap "" 1
TERM=vt220
export TERM
cd /home/proj/xfiles/pf
$PROEXE -b -pf /home/xfiles/pf/xfiles.pf -p x/xbherunix.p -param "HOURLY" 2>&1 &
The PF simply needs to connect to the database server. NOTE that no INI file is required since the PROPATH is setup in the script earlier. Consequently the correct PROPATH should be specified in the script itself.
The param should specify the name of the batch to run (e.g. FIFO).