Hi,
I have a problem after upgrading to LPRng-3.8.15. It seems, user
*has to* specify target host on a commandline line to get a job printed:
$ ./src/.libs/lpr -Plp@pf-i400 /etc/passwd
$ ./src/.libs/lpr -Plp@localhost /etc/passwd
$ ./src/.libs/lpr -Plp@ /etc/passwd
Status Information:
sending job 'mmokrejs@pf-i400+658' to lp@<NULL>
connecting to '<NULL>', attempt 1
cannot open connection to <NULL> - bad or missing hostname?
$ ./src/.libs/lpr -Plp /etc/passwd
Status Information:
sending job 'mmokrejs@pf-i400+659' to lp-pf-i400@localhost
connecting to 'localhost', attempt 1
connected to 'localhost'
requesting printer lp-pf-i400@localhost
job 'mmokrejs@pf-i400+659' transfer to lp-pf-i400@localhost failed
error 'ERROR TRANSFERRING DATA'
sending str '^Blp-pf-i400' to lp-pf-i400@localhost
$
I guess it's a configuration error, but where can I set that
in run-time files? I know about /etc/lpd.conf, but I'm a bit lost with those
many values. Actually, this did not help either:
lp:\
:[EMAIL PROTECTED]:\
:sd=/var/spool/lpd/lp:\
:force_localhost@:
$ ./src/.libs/lpr -P lp -V /etc/passwd
LPRng-3.8.15, Copyright 1988-2002 Patrick Powell, <[EMAIL PROTECTED]>
sending job 'mmokrejs@pf-i400+335' to [EMAIL PROTECTED]
connecting to 'pf-i400.natur.cuni.cz', attempt 1
connected to 'pf-i400.natur.cuni.cz'
requesting printer [EMAIL PROTECTED]
job 'mmokrejs@pf-i400+335' transfer to [EMAIL PROTECTED] failed
error 'ERROR TRANSFERRING DATA'
sending str '^Blp-pf-i400' to [EMAIL PROTECTED]
job failed - error 'ERROR TRANSFERRING DATA'
sending str '^Blp-pf-i400' to [EMAIL PROTECTED]
$ ./src/.libs/lpr -Plp -V /etc/passwd
LPRng-3.8.15, Copyright 1988-2002 Patrick Powell, <[EMAIL PROTECTED]>
sending job 'mmokrejs@pf-i400+340' to [EMAIL PROTECTED]
connecting to 'pf-i400.natur.cuni.cz', attempt 1
connected to 'pf-i400.natur.cuni.cz'
requesting printer [EMAIL PROTECTED]
job 'mmokrejs@pf-i400+340' transfer to [EMAIL PROTECTED] failed
error 'ERROR TRANSFERRING DATA'
sending str '^Blp-pf-i400' to [EMAIL PROTECTED]
job failed - error 'ERROR TRANSFERRING DATA'
sending str '^Blp-pf-i400' to [EMAIL PROTECTED]
$ ./src/.libs/lpr -Plp@localhost -V /etc/passwd
LPRng-3.8.15, Copyright 1988-2002 Patrick Powell, <[EMAIL PROTECTED]>
sending job 'mmokrejs@pf-i400+345' to lp@localhost
connecting to 'localhost', attempt 1
connected to 'localhost'
requesting printer lp@localhost
sending control file 'cfA345pf-i400.natur.cuni.cz' to lp@localhost
completed sending 'cfA345pf-i400.natur.cuni.cz' to lp@localhost
sending data file 'dfA345pf-i400.natur.cuni.cz' to lp@localhost
completed sending 'dfA345pf-i400.natur.cuni.cz' to lp@localhost
done job 'mmokrejs@pf-i400+345' transfer to lp@localhost
$
Also, what did I miss when compiling LPRng? My old
lpr client from LPRng-3.6.9 works in all cases shown above out-of-the-box. ;)
My setup is:
lp-pf-i400|lp-pf-i400-R:\
:rw:\
:sh:\
:lp=/dev/ecpp0:\
:sd=/var/spool/lpd/local:\
:lf=/var/spool/lpd/local/log:af=/var/spool/lpd/local/acct:ps=status:\
:if=/software/@sys/usr/share/filters/ljet4m:\
:mx#0:ml=0:check_for_nonprintable@:
I use Solaris 2.6, gcc-2.95.3.
Please Cc: me in replies. Thanks!
--
Martin Mokrejs <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
PGP5.0i key is at http://www.natur.cuni.cz/~mmokrejs
MIPS / Institute for Bioinformatics <http://mips.gsf.de>
GSF - National Research Center for Environment and Health
Ingolstaedter Landstrasse 1, D-85764 Neuherberg, Germany
tel.: +49-89-3187 3683 , fax: +49-89-3187 3585
-----------------------------------------------------------------------------
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address
If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body. For the impatient,
to subscribe to a list with name LIST, send mail to [EMAIL PROTECTED]
with: | example:
subscribe LIST <mailaddr> | subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST <mailaddr> | unsubscribe lprng [EMAIL PROTECTED]
If you have major problems, send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-----------------------------------------------------------------------------