Re: LPRng: 'o' filter problem

2002-01-11 Thread christoph . beyer

hi,

if you use the 'filter=your_filter' entry every job gets filtered by
'your_filter' except those that you define in addition using the
'pldfashioned' way 

regards
~christoph



On Thu, 10 Jan 2002, Michael F Gordon wrote:

 We've got a client that submits job files like the one below.  The problem
 is caused by the line starting with 'o' which, according to the documentation,
 means it's a PostScript file.  What I don't know is how to specify a filter
 for this format in printcap - 'of' is the output filter, so I can't use
 that.  lpd won't print the job without a filter entry in printcap.

 Any ideas?


 Michael Gordon



 Hltpclih.ee.ed.ac.uk
 Ples
 JUntitled
 Ales@ltpclih+1
 Qeepssmc
 odfA001ltpclih.ee.ed.ac.uk
 UdfA001ltpclih.ee.ed.ac.uk

 -
 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.
 -



-
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.
-



Re: LPRng: Problems running LPRng 3.8.1 on Compaq Tru64 Unix 5.1aand DS20

2002-01-11 Thread christoph . beyer

hi,

the output of 'lpq -L' might be useful...

regards
~christoph



On Thu, 10 Jan 2002, Carl Riches wrote:


 We are having a problem with LPRng-3.8.1 and IFHP versions 3.1.15 and
 3.5.0 when the lpd daemon is running on the server for one of our
 departments, a Compaq DS20 with Compaq Tru64 Unix 5.1a.  We do not have
 a problem if the daemon is running on the servers in our other departments
 (DEC AlphaStation 600s running Compaq Tru64 Unix 5.1), nor do we have a
 problem if the daemon is running on one of our client machines (a mixture
 of DEC AlphaStation 600s, AS 800s and Compaq DS10s).

 Here are the symptoms:

 Printing hangs on the DS20 when the lpd server hands printing off to a
 filter.  Printing does not hang if no filters are defined (but then one
 can't filter the print job and get the print job to go onto the paper
 properly).

 Here are the lines put into the file status.test by a print request:

 waiting for subserver to exit at 2002-01-10-13:22:43.600 ## A=NULL number=0 
process=425988
 subserver pid 425975 starting at 2002-01-10-13:22:43.815 ## A=riches@entropy+983 
number=983 process=425975
 accounting at start at 2002-01-10-13:22:43.818 ## A=riches@entropy+983 number=983 
process=425975
 opening device 'ent%9100' at 2002-01-10-13:22:43.825 ## A=riches@entropy+983 
number=983 process=425975
 printing job 'riches@entropy+983' at 2002-01-10-13:22:43.841 ## A=riches@entropy+983 
number=983 process=425975
 processing 'dfA983entropy.ms.washington.edu', size 1939, format 'f', IF filter 
'ifhp' at 2002-01-10-13:22:43.853 ## A=riches@entropy+983 number=983 process=425975

 At this point, the print job hangs with no activity on the printer.  The
 print queue must be cleared with the lprm command, which appends this line
 to the file status.test:

 subserver pid 425975 exit status 'JFAIL' at 2002-01-10-13:24:26.994 ## A=NULL 
number=0 process=425988

 I can't figure out why this fails on this particular machine.  Has anyone
 run into this sort of problem in the past and can give me pointers on why
 this is breaking?


 Here is our printcap file (/usr/local/etc/printcap):

 # ===
 #
 # Printer:  test queue (Hewlett-Packard LaserJet 4000TN with duplexer)
 # Location: C-28 Padelford Hall
 # Connection:   TCP/IP
 #
 # Notes:
 #
 test:
 :client
 :lp=test@entropy
 test:
 :server
 :cm=test queue running on HP LaserJet 4000TN in C-28 Padelford
 :lp=ent%9100
 :ifhp=model=hp4000
 :sd=/var/spool/test
 :sh@
 :sb@
 :filter=/usr/local/libexec/filters/ifhp



 Thanks for your help,
 Carl

 Carl G. Riches
 Software Engineer
 Department of Mathematics
 Box 354350voice: 206-543-5082 or 206-616-3636
 University of Washington  fax:   206-543-0397
 Seattle, WA  98195-4350   internet:  [EMAIL PROTECTED]



 -
 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.
 -



-
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.
-



Re: LPRng: LPRng and Samba

2002-01-11 Thread christoph . beyer

hi,

the SAMBA macros %M and %m contain the connecting clients internet /
netbios name. If you use something like lpr ... -m%m ... as a print
command the hostname will be in the controlfile in the 'M-line' all the
rest is a fancy script or something like that to get it in your
accounting...

maybe this helps (?)

regards
~christoph





On Thu, 10 Jan 2002, Ryan Novosielski wrote:

 This is technically more of a Samba problem, but I bet someone will be
 willing to help me a little here.

 The problem here is that we have 4 campus servers. Each one hosts a Samba
 domain. Sometimes, users for whatever reason will go to a different campus
 (where they may or may not have an account -- the problem occurs when they
 do not). They log in using the Samba domain of their home site, but
 attempt to use printers on the campus they are visiting. While the PC they
 are using knows what their username is, and I can take this on good faith,
 since they do not have an account on the machine Samba serving the
 printers, their jobs print as the network guest user. This is clearly a
 problem for accounting. Does anyone know of a way for LPRng to find out
 who the client PC is logged in as by the time accounting occurs? We don't
 wish to just give away pages to students who happen to travel. It's a
 shame the setup is the way it is, but I'm just looking for a way to make
 this work in our current environment.

 Thanks for any help you may wish to give me!

  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  |  | Ryan Novosielski - Jr. UNIX Systems Admin
 |$| |__| |  | |__/ | \| _|  | [EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent. | IST/ACS - New Jersey Medical School - C630


 -
 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.
 -



-
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.
-



Re: LPRng: Problems running LPRng 3.8.1 on Compaq Tru64 Unix 5.1aand DS20

2002-01-11 Thread Carl Riches

On Fri, 11 Jan 2002 [EMAIL PROTECTED] wrote:

 hi,

 the output of 'lpq -L' might be useful...


Before continuing, I should add that printing to a disk file on the
problem server works just fine--it is just printing to a network printer.

I'm not sure if this will tell you much, but here is the output of
lpq -L -v:

Printer: test@entropy
 Job: riches@entropy+471 Comment: test queue running on HP LaserJet 4000TN in C-28 
Padelford
 Printing: no
 Aborted: no
 Spooling: no
 Queue: 1 printable job
 Server: pid 9473 active,  Unspooler: pid 9467 active
 SPOOLCONTROL=
 Status: waiting for subserver to exit at 13:22:43.600
 Status: subserver pid 425975 starting at 13:22:43.815
 Status: accounting at start at 13:22:43.818
 Status: opening device 'ent%9100' at 13:22:43.825
 Status: printing job 'riches@entropy+983' at 13:22:43.841
 Status: processing 'dfA983entropy.ms.washington.edu', size 1939, format 'f', IF 
filter 'ifhp' at 13:22:43.853
 Status: subserver pid 425975 exit status 'JFAIL' at 13:24:26.994
 Status: subserver pid 9467 starting at 09:12:09.998
 Status: waiting for subserver to exit at 09:12:10.005
 Status: accounting at start at 09:12:10.010
 Status: opening device 'ent%9100' at 09:12:10.017
 Status: printing job 'riches@entropy+471' at 09:12:10.025
 Status: processing 'dfA471entropy.ms.washington.edu', size 1939, format 'f', IF 
filter 'ifhp' at 09:12:10.037
 Job: riches@entropy+471 status= stalled(465sec)
 Job: riches@entropy+471 size= 1939
 Job: riches@entropy+471 time= 0x3c3f1ce9
 Job: riches@entropy+471 CONTROL=
Ariches@entropy+471
CA
D2002-01-11-09:12:09.465
Hentropy.ms.washington.edu
J/etc/hosts
Priches
Qtest
N/etc/hosts
fdfA471entropy.ms.washington.edu
UdfA471entropy.ms.washington.edu

 Job: riches@entropy+471 HOLDFILE=

A=riches@entropy+471
C=A
D=2002-01-11-09:12:09.465
datafile_count=1
datafiles=N/etc/hostsfdfA471entropy.ms.washington.eduUdfA471entropy.ms.washington.edu
file_hostname=entropy.ms.washington.edu
filenames=/etc/hosts
H=entropy.ms.washington.edu
held=0x0
hf_name=hfA471
hold_class=0x0
hold_time=0x0
J=/etc/hosts
job_time=0x3c3f1ce9
job_time_usec=0x67055
number=471
P=riches
printable=0x1
priority=A
Q=test
server=9467
size=1939
start_time=0x3c3f1ce9
transfername=cfA471entropy.ms.washington.edu
update_time=2002-01-11-09:12:09.987

Carl



 On Thu, 10 Jan 2002, Carl Riches wrote:

 
  We are having a problem with LPRng-3.8.1 and IFHP versions 3.1.15 and
  3.5.0 when the lpd daemon is running on the server for one of our
  departments, a Compaq DS20 with Compaq Tru64 Unix 5.1a.  We do not have
  a problem if the daemon is running on the servers in our other departments
  (DEC AlphaStation 600s running Compaq Tru64 Unix 5.1), nor do we have a
  problem if the daemon is running on one of our client machines (a mixture
  of DEC AlphaStation 600s, AS 800s and Compaq DS10s).
 
  Here are the symptoms:
 
  Printing hangs on the DS20 when the lpd server hands printing off to a
  filter.  Printing does not hang if no filters are defined (but then one
  can't filter the print job and get the print job to go onto the paper
  properly).
 
  Here are the lines put into the file status.test by a print request:
 
  waiting for subserver to exit at 2002-01-10-13:22:43.600 ## A=NULL number=0 
process=425988
  subserver pid 425975 starting at 2002-01-10-13:22:43.815 ## A=riches@entropy+983 
number=983 process=425975
  accounting at start at 2002-01-10-13:22:43.818 ## A=riches@entropy+983 number=983 
process=425975
  opening device 'ent%9100' at 2002-01-10-13:22:43.825 ## A=riches@entropy+983 
number=983 process=425975
  printing job 'riches@entropy+983' at 2002-01-10-13:22:43.841 ## 
A=riches@entropy+983 number=983 process=425975
  processing 'dfA983entropy.ms.washington.edu', size 1939, format 'f', IF filter 
'ifhp' at 2002-01-10-13:22:43.853 ## A=riches@entropy+983 number=983 process=425975
 
  At this point, the print job hangs with no activity on the printer.  The
  print queue must be cleared with the lprm command, which appends this line
  to the file status.test:
 
  subserver pid 425975 exit status 'JFAIL' at 2002-01-10-13:24:26.994 ## A=NULL 
number=0 process=425988
 
  I can't figure out why this fails on this particular machine.  Has anyone
  run into this sort of problem in the past and can give me pointers on why
  this is breaking?
 
 
  Here is our printcap file (/usr/local/etc/printcap):
 
  # ===
  #
  # Printer:  test queue (Hewlett-Packard LaserJet 4000TN with duplexer)
  # Location: C-28 Padelford Hall
  # Connection:   TCP/IP
  #
  # Notes:
  #
  test:
  :client
  :lp=test@entropy
  test:
  :server
  :cm=test queue running on HP LaserJet 4000TN in C-28 Padelford
  :lp=ent%9100
  :ifhp=model=hp4000
  :sd=/var/spool/test
  :sh@
  :sb@
  :filter=/usr/local/libexec/filters/ifhp
 
 
 
  Thanks for your help,
  Carl
 
  Carl G. 

LPRng: Underscore or no underscore?

2002-01-11 Thread Craig Small

This had me going for a while, minor stuff but so annoying.  CHANGES
uses unix_socket, configure uses unixsocket.  configure wins but is not
the obvious place to look initially.

./configure --help | grep unix
  --enable-unixsocket   add unix socket for localhost connections
  --with-unixsocketpath=DIR unix socket path (default /var/run/lprng)

grep unix CHANGES 
   --enable-unix_socket  (default disabled)
   --with-unix_socket_path=PATH  (default /dev/lprng)

-- 
Craig Small VK2XLZ  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
Eye-Net Consulting http://www.eye-net.com.au/[EMAIL PROTECTED]
MIEEE [EMAIL PROTECTED] Debian developer [EMAIL PROTECTED]

-
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.
-