#! /bin/bash #+ # NAME: # sprint_setup # PURPOSE: # Add escape sequences used by $EXE/sprint to ~/LOGFIL.TXT # CALLING SEQUENCE: # sprint_setup # PROCEDURE: # This script is called by update_logfile. # It uses the program mkenv to write a number of entries to # ~/LOGFIL.TXT. The executable must be in the PATH. # # The escape sequences control the HP Laserjet III printer only. # It is assumed that the printer is hooked up to CASS185. # Other machines should first set up a remote printer with the # name 'print185'. # # Once sprint_setup has been called, the program $EXE/sprint should # be available to print to the Laserjet III printer. # MODIFICATION HISTORY: # JAN-2001, Paul Hick (UCSD/CASS; pphick@ucsd.edu) #- mkenv=$(which mkenv) if [ -n $mkenv ]; then $mkenv -set -sym LIB__LS_START="(8U&l0o5C(s0p14h0s0b4101T" $mkenv -set -sym LIB__LS_LAND="(8U&l1o5C(s0p14h0s0b4101T" $mkenv -set -sym LIB__LS_STOP="E" $mkenv -set -sym LIB__LS_PAGEL=96 $mkenv -set -sym LIB__LS_LANDL=70 $mkenv -set -sym LIB__LS_FF=NO # Currently the HP Laserjet III is hooked up to CASS185. # The print queue is print185 (both for local and remote printing). #$mkenv -set -sym LIB__LS_PRNT=lpr --Pprint185 --r $mkenv -set -sym LIB__LS_PRNT=lpr --PHPLJ1012 --r else echo "Executable mkenv not found" fi