Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
* Printing problem
@ 1999-08-12  4:00 znantho
  1999-08-13  4:00 ` Dr. J.C.Hill
  0 siblings, 1 reply; 4+ messages in thread
From: znantho @ 1999-08-12  4:00 UTC (permalink / raw)


I have a LAN that uses a DEC Alpha running OSF 3.2 as a print server.
The printer is a DEC PrintServer32.  

The problem I am having is that flags used on the command line with
lpr are being dropped, and the document looks the same as it would
without the flags.

For example "-N1",  "-K"

I think that I need to specify a different filter in the printcap file
of the server.  But which, I have no idea.

I really appreciate any help. 
Thanks,
-Zach




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Printing problem
  1999-08-12  4:00 Printing problem znantho
@ 1999-08-13  4:00 ` Dr. J.C.Hill
  1999-08-13  4:00   ` znantho
  0 siblings, 1 reply; 4+ messages in thread
From: Dr. J.C.Hill @ 1999-08-13  4:00 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 754 bytes --]

You need the Printserver software installed (you probably have already to
act as boot server for the LPS32). Then use lpspr to pre-format the
outout.
lpr doesn't support number-up or duplex commands. Try "man lpspr" to
see what is needed.

John Hill

znantho@ourserver.com wrote:

> I have a LAN that uses a DEC Alpha running OSF 3.2 as a print server.
> The printer is a DEC PrintServer32.
>
> The problem I am having is that flags used on the command line with
> lpr are being dropped, and the document looks the same as it would
> without the flags.
>
> For example "-N1",  "-K"
>
> I think that I need to specify a different filter in the printcap file
> of the server.  But which, I have no idea.
>
> I really appreciate any help.
> Thanks,
> -Zach

[-- Attachment #2: Card for Dr. J.C.Hill --]
[-- Type: text/x-vcard, Size: 177 bytes --]

begin:vcard 
n:Hill;John
tel;fax:01223-353920
tel;work:01223-337243
x-mozilla-html:FALSE
adr:;;;;;;
version:2.1
email;internet:hill@hep.phy.cam.ac.uk
x-mozilla-cpt:;0
end:vcard

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Printing problem
  1999-08-13  4:00 ` Dr. J.C.Hill
@ 1999-08-13  4:00   ` znantho
  1999-08-17  4:00     ` Labonte
  0 siblings, 1 reply; 4+ messages in thread
From: znantho @ 1999-08-13  4:00 UTC (permalink / raw)


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 <file> | lpr -Plps32"
Thanks again,
-Zach





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Printing problem
  1999-08-13  4:00   ` znantho
@ 1999-08-17  4:00     ` Labonte
  0 siblings, 0 replies; 4+ messages in thread
From: Labonte @ 1999-08-17  4:00 UTC (permalink / raw)


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 <file> | lpr -Plps32"
> Thanks again,
> -Zach




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-08-17  4:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-08-12  4:00 Printing problem znantho
1999-08-13  4:00 ` Dr. J.C.Hill
1999-08-13  4:00   ` znantho
1999-08-17  4:00     ` Labonte

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox