From: Labonte <labonte!@!zk3.dec.com>
Subject: Re: Printing problem
Date: 1999/08/17 [thread overview]
Message-ID: <7pc13n$ukn$1@lead.zk3.dec.com> (raw)
In-Reply-To: 37b441ae.920804386@news.earthlink.net
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
prev parent reply other threads:[~1999-08-17 4:00 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox