ESCRIPs
Problem Description :
The Registar's office is using escrip to send transcrip elextronically. These are the steps we have taken to make this happen.
Resolution :
To make this process work, I completed the following steps.
1. I added a printer to GTVPRNT called ESCRIP.
2. The GJAJOBS.shl file which is found in /gdn01/prodhome/links was modified. When they use ESCRIP as a printer it will create a copy of the .lis file in /gdn01/prodhome/local/escrip. It is called escrip_zhrtrtc_one-up-number.lis. The modification made to this script are below.
Added the following lines under the C section of the .shl
# gdn added for transcripts to be sent to ESCRIP
if [ "$6" = "ESCRIP" ]
then
echo 'gurinso -n $ONE_UP -l $H/$TEMP.lis -j $JOB -w $BANUID $UIPW \
1>>$LOG 2>&1' >> $H/$TEMP.shl
echo 'gurinso -n $ONE_UP -l $LOG -j $JOB -w $BANUID $UIPW 1>>$LOG 2>&1' \
>> $H/$TEMP.shl
echo '/bin/cp $H/$TEMP.lis /gdn01/prodhome/local/escrip/escrip_$TEMP.lis' >>$H/$TEMP.shl
fi
# gdn eND
# gdn added -a "$6" != "ESCRIP" to the line below.
if [ "$6" != "NOPRINT" -a "$6" != "DATABASE" -a "$6" != "ESCRIP" ]
3. I created 1 directory under /gdn01/prodhome/local called escrip. When ZHRTRTC is ran using ESCRIP as the printer, it will create the file in this directory.
4. I created 2 directories under /gdn01/prodhome/local/escrip. Once called TEMP one called ARCHIVE.
5. I also created a .shl which will move these files to escrip. It will move all .lis files from /gdn01/prodhome/local/escrip to /gdn01/prodhome/local/escrip/temp. It will then sftp these files up to the escrip server. It will them move the files from the temp directory to the archive directory. The script is called cp_escrip.shl
$ more cp_escrip.shl
mv *.lis temp/.
sftp 9yf6z3j@in.escrip-safe.com <<EOF
prompt off
mput temp/*.lis
exit
EOF
mv temp/*.lis archive/.
Revision Date : 4/30/2012