|
DataMuseum.dkPresents historical artifacts from the history of: Regnecentalen RC-900 |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Regnecentalen RC-900 Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: T u
Length: 1048 (0x418) Types: TextFile Names: »usr/spool/lp/model/rc630prX «
└─⟦833723c12⟧ Bits:30004042/core5.imd SW95705I 386/ix Multi-user Release 1.2 └─⟦this⟧ »usr/spool/lp/model/rc630prX «
#ident "@(#)lp:model/rc630prX 1.2" # lp interface for rc630 program line printer on rc39 # machine=`basename $0` ( # don't let rc39 lp driver touch any data echo '\033\033\022\c' # iso,reset,lf->crlf,USASCII,a4 portrait, margin, 16cpi echo '\033;\033=\033[?5h\033(B\033[14p \033[0t\033[2 K\c' Header=Yes for i in $5 do case "$i" in h | H) Header=No;; *) ;; esac done if [ $Header = Yes ]; then echo "\n\n\n\n" banner "$2" echo "\n" user=`grep "^$2:" /etc/passwd | line | cut -d: -f5` if [ -n "$user" ] then echo "User: $user\n" else echo "\n" fi echo "Request id: $1 Printer: `basename $0`@`uname`\n" date echo "\n" if [ -n "$3" ] then banner $3 fi echo "\014\c" fi copies=$4 shift; shift; shift; shift; shift files="$*" i=1 while [ $i -le $copies ] do for file in $files do cat "$file" 2>&1 [ "`tail -1c $file`" = `echo "\014\c"` ] || echo "\014\c" done i=`expr $i + 1` done # reset echo '\033;\033=\c' # let rc39 lp driver touch any data echo '\033\033\021\c' ) | wr -s "$machine" -c"lpr -h -b" exit 0