Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!umich!samsung!sol.ctr.columbia.edu!emory!wa4mei!bcs800!jeffr From: jeffr@bcs800.UUCP (Jeff Riegel) Newsgroups: comp.sys.m68k Subject: Re: Need reference suggestions... Keywords: remote printer, remote system, modem Message-ID: <985@bcs800.UUCP> Date: 23 Aug 90 19:02:20 GMT References: <883@levelland.cs.utexas.edu> Distribution: na Organization: Brock Control Systems, Atlanta, Georgia Lines: 51 In <883@levelland.cs.utexas.edu> tyen@cs.utexas.edu (caffeine_fiend) writes: >I have a Motorola Unix box sitting in one office, with a couple of >modem ports hanging off of it. There is a terminal far, far away with >a modem dangling from it. Dial-up, play with Unix---no problem. >However, I am stumped as to how to connect a printer at the remote >terminal site, so that it appears as just another /dev, and behaves >accordingly. To create a remote printer do the following. 1. Create a printer using the same tty as the terminal... (eg.), lpadmin -v/dev/ttyxx -myyy -pzz where xx is the tty#, yyy is the model name, zz is the printer name 2. edit the interface file and add an echo statement before the print loop to set the escape codes to turn on the terminals transparent print mode on. (eg.) echo "\033\140\c" for a tvi905. 2. edit the interface file and add an echo statement after the print loop to set the escape codes to turn off the terminals transparent print mode. (eg.) echo "\033\141\c" for a tvi905. NOTE: That will printing the remote terminal will be disabled. EXAMPLE INTERFACE FILE: stty -parenb 9600 ixon -ixany istrip copies=$4 printer=`basename $0` shift; shift; shift; shift; shift; # TURN ON TRANSPARENT PRINT echo "\033\140\c" files="$*" i=1 while [ $i -le $copies ] do for file in $files do /bin/cat $file 2>&1 done i=`expr $i + 1` done # TURN OFF TRANSPARENT PRINT echo "\033\141\c" Good Luck