CONFIGURATION OF HERTZ ONE-WAY TRANSMISSION MODULE


    1. Create The following directories off the CARS+ base directory:

htzspool - Directory for files from ASAP

htzout - Directory for files sent to ASAP

oneway - Holds copies of report print-outs for merge & send.


    2. Make sure the following programs are in the CROBJ directory:

HTZSND - Send files to ASAP

HTZMRG - Merges files from ASAP

HTZCLS - Used to close ASAP rental agreements.


    3. Create terminal records for each user above, designating "sndprint" as the CARS+ report printer for SNDHTZ and "mrgprint" for MRGHTZ. If necessary, create the entries for these printer queues, using FIXEDFMT as the type. Make sure the default location is the main licensee location for these users.


    4. Create the following users in CARS+

Employee Code/Password

SNDHTZ / HTZSND

MRGHTZ / HTZMRG


    5. Add the following lines to the lclconfig file for the printing:

Use these lines for SCO Unix

mrgprint -P tee oneway/mrg.`date +%y%m%d%H%M%S` | lp -s -dprintername

sndprint -P tee oneway/snd.`date +%y%m%d%H%M%S` | lp -s -dprintername

Use these lines for Linux

mrgprint -P lpr -P tee mrg.`date +%y%m%d%H%M%S` | lpr -Pprintername

sndprint -P lpr -P tee snd.`date +%y%m%d%H%M%S` | lpr -Pprintername


    6. Put the following scripts in the /usr/bin directory:

getoneway- Runs the uucico command to get files from ASAP and merges files.

sndoneway- queues file for transmission to ASAP.


    7. Add the following line to the crontab. NOTE: The times shown are Eastern Standard Time. As files are posted for retrieval on the ASAP system at specified times, adjust the times accordingly for your time zone.

30 1,11,16,21 * * * /usr/bin/getoneway >>/tmp/htzmrg.log 2>&1


    8. Add the following lines to the cleancars script to clean old ASAP files.

Use these lines for SCO Unix.

find /usr/carsplus/htzspool -mtime +14 -print | xargs compress 2>/dev/null

find /usr/carsplus/htzspool -mtime +28 -print | xargs rm -f 2>/dev/null

find /usr/carsplus/htzout -mtime +14 -print | xargs compress 2>/dev/null

find /usr/carsplus/htzout -mtime +28 -print | xargs rm -f 2>/dev/null

find /usr/carsplus/oneway -mtime +14 -print | xargs compress 2>/dev/null

find /usr/carsplus/oneway -mtime +28 -print | xargs rm -f 2>/dev/null

Use these lines for Linux.

find /var/carsplus/htzspool -mtime +14 -print |xargs compress -f 2>/dev/null

find /var/carsplus/htzspool -mtime +28 -print |xargs rm -f 2>/dev/null

find /var/carsplus/htzout -mtime +14 -print |xargs compress -f 2>/dev/null

find /var/carsplus/htzout -mtime +28 -print |xargs rm -f 2>/dev/null

find /var/carsplus/oneway -mtime +14 -print |xargs compress -f 2>/dev/null

find /var/carsplus/oneway -mtime +28 -print |xargs rm -f 2>/dev/null