From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,782f09d3ed8476c0 X-Google-Attributes: gidfee84,public From: Labonte Subject: Re: Printing problem Date: 1999/08/17 Message-ID: <7pc13n$ukn$1@lead.zk3.dec.com>#1/1 X-Deja-AN: 513842276 Content-Transfer-Encoding: 7bit References: <37b35bea.861983626@news.earthlink.net> <37B3DB79.B5AC0835@hep.phy.cam.ac.uk> <37b441ae.920804386@news.earthlink.net> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: UBPG Mime-Version: 1.0 Newsgroups: comp.unix.osf.osf1 Try using the below script on the system servicing the printer. The client systems would remote print the the host system. -----begin script------ #!/usr/bin/ksh # lpsif.sh 08-May-98 # # This script eliminates the need for the user to use the lpspr command in # a printserver environment. After this script is installed the user will # be able to enter commands such as lpr -Pxxx -N2 file. # # This script calls the lpspr utility so it must be installed. # # Installing: # # > cp lpsif.sh /usr/lbin # > chmod 755 /usr/lbin/lpsif.sh # > chown bin:bin /usr/lbin/lpsif.sh # # Printcap setup example: # # Change the printcap entry from: # # :if=/usr/opt/LPS/bin/lpsif:\ # # To: # :if=/usr/lbin/lpsif.sh:\ # str1="" space=" " for OPT in $@ { case $OPT in -n*) ;; -h*) ;; -l*) ;; -Ktwo) str1=$str1$space-K2 ;; -Kone) str1=$str1$space-K1 ;; -*) str1=$str1$space$OPT ;; esac } /bin/cat | /usr/bin/lpspr $str1 | /usr/opt/LPS/bin/lpsif $@ --------end of script------ znantho@ourserver.com wrote: > Thank you very much, John. > It works great. > I can print from the Alpha without a problem. > But, is there an easy way to have the Alpha format > lpr requests from the clients. > I don't want to have to install the software on all the clients > and have the users type "lpspr -N1 | lpr -Plps32" > Thanks again, > -Zach