jpp@specialix.co.uk (John Pettitt) (08/01/90)
The script below is part of the driver script for a TI MicroLaser PS. The nice thing about this printer is that it can switch between PostScript and HP Laser Jet II on the fly ! The script tries to figure our what you are printing and put the printer in the right mode. This script is for the SCO UNIX version of lp your mileage may (will) vary. [ top half of script dleted as it is copyright elan (came with eroff) ] while [ $i -le $COPIES ] do for f in $FILES do case "`file $f`" in *data) # HPLJ Graphics data cat /usr/spool/lp/admins/lp/interfaces/pstohp cat $f cat /usr/spool/lp/admins/lp/interfaces/hptops ;; *) case "`sed 1q $f`" in %!*) # Just spit out the file. $CAT "$f" echo '' ;; *) # Just text, so convert to PostScript first. $PSPRINT "$f" echo '' ;; esac ;; esac done i=`expr $i + 1` done exit 0 Here is the pstohp file: ^D % switch from postscript mode to hp mode serverdict begin 0 exitserver statusdict begin 5 setsoftwareiomode end ^D and here is the sequence to put in the hptops file ESC DLE 0 (0x1b 0x10 0x60) Hope this is of help to anybody else using this printer. -- John Pettitt, Specialix International, Email: jpp@specialix.com Tel +44 (0) 9323 54254 Fax +44 (0) 9323 52781 Disclaimer: Me, say that ? Never, it's a forged posting !