LPRng: odd 'hostname' information in lpq status reports

2004-10-12 Thread Patrick Powell
In the last week or so, somebody posted email about the 'wrong' hostname
showing up in lpq reports.  I am currently email impaired and cannot get
to my archive,  but as I recall when the user did:

lpq [EMAIL PROTECTED]

They got back:

Status from [EMAIL PROTECTED]
Then [EMAIL PROTECTED]
then [EMAIL PROTECTED]
then  @localhost

I stared at this and could not figure out what may have caused it.
I have been working on some networking issues in another area,  and
have just run into a similar issue but for a different utility.

The problem was caused because the hostname was set to 'localhost':


The hostname was set by: 

hostname goldenfleece.com  - ok

But in /etc/hosts:

127.0.0.1  localhost goldenfleece.com goldenfleece argonuts.com argonuts

When a connection was accepted, the hostname corresponding to the
IP address was looked up using gethostbyaddr and 'localhost' was returned.

You may have some similar issues - check your DNS or /etc/hosts file.

Patrick (long shot on this one) Powell

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


LPRng: Tempfs, NFS, and other FS problems

2004-10-12 Thread Patrick Powell
In the LPRng manual, and the README's, etc. etc., there are dire
warnings about using NFS mounted file systems for LPRng.  This has
to do with the horrible problems with locking and consistency of
the NFS file systems.  While this problem has largely been solved
on newer NFS file systems,  it is still there when people use SMB
mounted systems (cough cough... Samba users take note).

The problem with the Tempfs system appears to be a little different.
I suspect that you need to add a 'checkpc -f' after you have
created/mounted the tempfs system.  This will fix up the permissions,
etc., etc., needed by LPRng.  You should NOT start lpd until checkpc
-f is finished.

I just created a memory file system (mfs) on FreeBSD 4.8,
set a symbolic link from /var/spool/lpd to /mfs/lpd,
ran checkpc -f,  and spooled and printed files with no problems.
Also on FreeBSD 5.2.

Good luck, and I hope this helps.

Patrick

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: ifhp 3.5.18 fails all attempts to print with '/usr/ucb/file STDIN - can't stat 'STDIN''

2004-10-07 Thread Patrick Powell
 From [EMAIL PROTECTED] Tue Oct  5 06:33:04 2004
 Subject: LPRng: ifhp 3.5.18 fails all attempts to print with '/usr/ucb/file STDIN -
  can't stat 'STDIN''
 To: [EMAIL PROTECTED]
 From: [EMAIL PROTECTED]
 Date: Tue, 5 Oct 2004 09:29:00 -0400



I am putting out a new version of ifhp with an updated 'configure'
that will check for the correct 'file' behavior.  I will put this
on the web site today:

From the configure output:

creating libtool
checking for file... /usr/local/bin/file
/dev/stdin: ASCII text
the '/usr/local/bin/file -'  operates correctly





 Patrick,

 I sent this to the list yesterday, but it has not yet appeared. So I'm
 sending it to you.

 Thanks - Justus Addiss

 __

 I just downloaded ifhp 3.5.18. It compiled fine, but when I run it I only
 get a sheet with an error message. The culprit appears to be that it's
 calling the file utility with the argument 'STDIN' which causes 'file' to
 fail and then the conversion code fails to find a match on can't stat
 'STDIN' (the output of the 'file' command).

 The log has this to say:

 Make_stdin_file: input is_file 1, size 3080 at 13:19:01.713
 Fix_option_str: escape at '\%s{inputfile}', '%' at 13:19:01.713
 Find_sub_value: type '{', id 'inputfile' at 13:19:01.713
 Find_sub_value: InputFile 'STDIN' at 13:19:01.713
 Fix_option_str: using fmt '%s', type 's', value 'STDIN' at 13:19:01.713
 Fix_option_str: fixing value 'STDIN' at 13:19:01.713
 Fix_option_str: returning 'STDIN' at 13:19:01.713
 Fix_option_str: fixed value 'STDIN' at 13:19:01.713
 Fix_option_str: returning '/usr/local/bin/file STDIN' at 13:19:01.713
 Send_job: foomatic 0 at 13:19:01.713
 Init_outbuf: Outbuf 0x14001a000, Outmax 10240, Outlen 0 at 13:19:01.713
 Send_job: want 64 at 13:19:01.714
 Send_job: read 64 from stdin '!#$%'()*+,-./0123456789:;=[EMAIL PROTECTED]
 #$%'()' at 13:19:01.714
 Send_job: file_util_path '/usr/local/bin/file STDIN' at 13:19:01.714
 Use_file_util: pgm '/usr/local/bin/file STDIN', value_len 512 at 13:19:01.714
 Use_file_util: file program = '/usr/local/bin/file STDIN' at 13:19:01.714
 Make_tempfile: tempfile 'ifhpXX' at 13:19:01.714
 Make_tempfile: new tempfile 'ifhpFBcrQB', fd 4 at 13:19:01.717
 Filter_file: pgm '/usr/local/bin/file STDIN', title 'FILE_UTIL', stdin 0, stdout 4 
 at 13:19:01.717
 Split_cmd_line_OBJ: line '/usr/local/bin/file STDIN' at 13:19:01.717
 Split_cmd_line_OBJ - OBJ_T_LIST len 2 at 13:19:01.717
  [0]  '/usr/local/bin/file'  at 13:19:01.717
  [1]  'STDIN'  at 13:19:01.717
  [2]  0x0 at 13:19:01.717
 Filter_file: process args - OBJ_T_LIST len 2 at 13:19:01.717
  [0]  '/usr/local/bin/file'  at 13:19:01.717
  [1]  'STDIN'  at 13:19:01.717
  [2]  0x0 at 13:19:01.717
 Filter_file: started FILE_UTIL- 'file' at 13:19:01.718
 Filter_file: converter pid 21668, exit 'exit status 0' at 13:19:01.736
 Use_file_util: read 55, 'STDIN: can't stat `STDIN' (No such file or directory).
 ' at 13:19:01.737
 Use_file_util: file information = 'can't_stat_`stdin'_(no_such_file_or_directory).' 
 at 13:19:01.737
 Use_file_util: file util done, 'can't_stat_`stdin'_(no_such_file_or_directory).' at 
 13:19:01.737
 Init_outbuf: Outbuf 0x14001a000, Outmax 10240, Outlen 64 at 13:19:01.737
 Send_job: initial job type 'can't_stat_`stdin'_(no_such_file_or_directory).', size 
 3080 at 13:19:01.737

 Any ideas on how to fix this?

 Thanks - Justus Addiss
 j-j-a-d-d-i-s-s-A-T-m-m-m-.-c-o-m




-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: LPRng-3.8.27: strange load problem

2004-10-07 Thread Patrick Powell
 From [EMAIL PROTECTED] Thu Sep 30 16:19:20 2004
 Date: Wed, 29 Sep 2004 10:45:01 +0200
 To: [EMAIL PROTECTED]
 From: [EMAIL PROTECTED](Walter Harms)
 Subject: LPRng: LPRng-3.8.27:  strange load problem

 Hi Patrik,
 i have a strange problem when the lpd has some load, sometimes
 (lets say 1:50 change) he suddely stops without any errormessage or other indication 
 whats going on.

 I have tried to reproduce the error but failed so far.

 are you aware of this problem ?

 regards,
 walter


When you say 'stop', do you mean it stops accepting jobs OR
it does not process any jobs that are in the queue?

To prevent denial of service attacks, LPRng will not fork more than a 
specified number of 'worker' processes at a time.  It is assumed that
doing so will cause the operating system to be unable to start additional
processes.  This 'high water mark' is controlled by:

# Purpose: maximum number of servers that can be active
#   default max_servers_active=1024  (INTEGER)

Note that this is, by default, 1024 (default).  You might want to try lowering
this to (say) 512 and see if this effects anything.

The problem here is that when the system goes into a heavy load,
lprng does not notice this,  but tries to perform as normal.  The
problem usually is noticed by processes that it 'forks',  which then
desperately try to fork subprocesses,  which do not work,  which,
after a while, (10 minutes), the worker process exits, LPRng sees
the exit process,  decides it can now do more work,  and MAY start
a subprocess.

To ensure that this does not become a 'permanent' condition,  periodically
LPRng will do a scan of print queues, looking for work.  This scanning is
done by ONE process, which will send a message to the master LPD process,
which keeps a list of all the queues which need work.

When the load goes down,  this 'queue list' is scanned for the oldest entry,
and a subprocess is forked to handle this.  Umm... if a large number of queues
are ready to be serviced,  the lpd server might try to start a lot of them,
leading to the same problem as before.


As I say,  this usually only occurs under a very high load condition with
a lot of processes being created and then not exiting.

I have observed with on several Web Servers running Apache and CGI scripts.

Patrick

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: Revisiting a Ricoh Aficio 350e issue

2004-10-07 Thread Patrick Powell
 From [EMAIL PROTECTED] Thu Sep 30 16:19:20 2004
 Date: Tue, 28 Sep 2004 14:02:51 -0400 (EDT)
 From: Ryan Novosielski [EMAIL PROTECTED]
 Subject: LPRng: Revisiting a Ricoh Aficio 350e issue
 To: LPRng Mailing List [EMAIL PROTECTED]

 My printer driver seems to be generating this, or something like it, at 
 the beginning of my spool files:

 ^NM-s^_M-QM--

 ..this is throwing off file, and making it think that it is not a PJL 
 file (the ^[%PJL etc. comes right after it). Any ideas about how to deal 
 with this? I really just wanted it to look farther into the first line 
 (but not have to say HOW far) to find the PJL, but... I don't see that 
 that's necessarily possible with file (it would have to be relative to 
 some other string I determined to be in the file, apparently).

 Someone recently pestered me about this again, and I figure I shouldn't 
 let it win this time.

 Thanks!

  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  |  | Ryan Novosielski - User Support Spec. III
 |$| |__| |  | |__/ | \| _|  | [EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630

This is not a totally new one to me, but I cannot remember the
details of the particular device.  I think that whoever is generating
the files for this needs to look at the driver they are using.  For
some reason,  I keep thinking 'Brother Ink Jets' but I cannot recall
the details.

Patrick (not epson. no... not HP. Cannon? Some dot matrix printer?) Powell

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: Bug in lpq 2.8.27

2004-10-07 Thread Patrick Powell
 From [EMAIL PROTECTED] Thu Sep 30 16:19:20 2004
 Date: Fri, 24 Sep 2004 10:55:31 +0200
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED](Hans-Joachim Glaubitz)
 From: [EMAIL PROTECTED](Walter Harms)
 Subject: LPRng: Bug in lpq 2.8.27

 Hi Patrick,
 there is a bug in the lpq hostname handling.
 When looping over a remote computer he checks the remote the
  first time only. after that he uses the localhost.
 I have verified the problem in 3.8.19 and 3.8.27.

 [EMAIL PROTECTED]:~ lpq -s [EMAIL PROTECTED] -t2
 [EMAIL PROTECTED] 0 jobs
 [EMAIL PROTECTED] 0 jobs   ---
 [EMAIL PROTECTED] 0 jobs   ---
 [EMAIL PROTECTED] 0 jobs   ---

 regards,
 walter

Could you send me a SMALL (short) printcap entry that produces
this problem?  I tried it here and did not get this behavior.

Patrick Powell
Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: too many errors, only workers here

2004-10-07 Thread Patrick Powell
 From [EMAIL PROTECTED] Thu Sep 30 16:19:20 2004
 Subject: LPRng: too many errors, only workers here
 To: [EMAIL PROTECTED]
 From: [EMAIL PROTECTED]
 Date: Wed, 22 Sep 2004 19:41:57 +0200

 I have found strange behavior of LPRng working together with a
 perl/ghostscript ps2pdf script.

 This combination worked in the past (RH 7.2 - 8.0) without difficulties but
 since RedHat dropped
 LPRng from the distrib-CDs, my trio sometimes -not predictable - comes out
 on strike.
 After a reboot it works again (same client, same printjob, etc)


 -- environment
 different hardware = P2 266 Compaq Proliant / Dual Xeon 3,0 GHz Tarox Intel
 Servers (all with RAID)
 OS = Fedora FC1 / FC2 (2.6.8-1)
 rpmbuild LPRng, SPEC without modification =
 ftp://ftp.lprng.com/pub/LPRng/LPRng/LPRng-3.8.27-1.src.rpm
 XP Client = LPR Port, with HP ColorLaserJet 5 / Lexmark Optra Color 1200 PS
 printcap=
 ..
 ps2pdf|PDF-Server:\
 :bk:sh:mx#0:ml#0:\
 :lp=/dev/null:\
 :lpd_bounce=true:\
 :sd=/var/spool/lpd/ps2pdf:\
 :if=/usr/local/bin/ps2pdf/pdfmail.pl:

 -- how it happens
 The Client prints as usually his request to the PDF-Printer (HP/Lexmark)
 via LPR to the LPRng Server.
 LPRng invokes the perl script and nothing else happens, no result, nothing.
 The 'lpq -c -n5 -Pps2pdf' shows me the following result:


I suspect the pdftops script is the cause of problems here.  One of the
issues with PDF is that it usually needs some temp file directory.
Can you send me the details of the pdfmail.pl script?

Patrick

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


LPRng: New and newer release LPRng, IFHP

2004-09-30 Thread Patrick Powell
I have just put out LPRng-3.8.28 and ifhp-3.5.18  WHOOPS! I got a bug report already...
Its now ifhp-3.5.19.

Version ifhp-3.5.19 - Thu Sep 30 16:16:28 PDT 2004

  Grrr... changed the default 'Inputfile' value to 'STDIN'
  so it would print nicely,  but this value is also used as
  a parameter to the file program.  Grrr... added another
  test to the regression tests.  This is getting silly.
Patrick Powell


Version ifhp-3.5.18 - Thu Jul 22 10:19:09 PDT 2004

  More fixes/improvements to LED display support.
   (Patch from: Hermann Lauer hermann.lauer _AT_ IWR.Uni-Heidelberg.De)
  Opening the 'file' name and not /dev/fd/0.  This cause problem
   when running with LPRng and a -p format.
   (Reported by: Justus J. Addiss jjaddis _AT_ mmm.com
  Changed email names in various lists, etc. from [EMAIL PROTECTED] to jo _AT_ 
host.
  Modified some of the /dev/fd/0 device entries in ifhp.conf to be
   '-' so that older versions of GhostScript do not have problems

Version LPRng-3.8.28 - Fri Jul 23 09:01:55 PDT 2004

  MAJOR CHANGES:

  The 'hold file' is now referred to as the 'job ticket' file.
  This is really what it is.  Reference manual, Cookbook, etc.,
  will be modified to reflect this change.

  incoming_control_filter:
   The input to this filter now has the format:
X=option  (from original control file)
key=option (options for job)

   Output for changes should have the format:
  X=   (for option deletion)
  key= (for option deletion)
  X=newvalue   (for option modification)
  key=newvalue (for option modification)
   
   The following environment variables are also passed, and have
   slightly different formats than before.
   
  CONTROL - image of the control file.  Note that the
data file entries have the form.
  f/path/to/temporary/file
  DATAFILES - space separted list of data files.  These
  are in the format /path/to/temporary/file.
   
  Added translations for German.
   (Translations by: Walter Harms [EMAIL PROTECTED])

  Note to users:  You may have to do:
cd po; make update-po
to get this to work correctly on your local system.

  Fixed yet another silly problem with moving jobs from a queue
   while the queue is busy.  Now the main server will NOT start
   another process to move the job if it can do the work itself.

  Added a counter to make sure that if a job is moved more than
   a specified number of times,  that we catch this and stop moving
   the job.  This code now works (ahem).
  


Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


LPRng: Postings to list disappearing

2004-09-22 Thread Patrick Powell
If you have tried to post to the LPRng mailing list lately (say in
the last couple of weeks),  and the postings have not shown up,
could you please email me at the following email address AND put
the indicated information in the Subject header?  I have set my
Anti-Spam rules to not reject mail with this, and it will actually
get read by a Real Person.  Note the use of _at_ to stand for @ and
_dot_ for period.  Grrr... Evil address miner bots.


Mail address:  vivian  _at_ astart _dot_ com


Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


LPRng: Using /dev/fd/0 and learning from (bad) experiences

2004-09-15 Thread Patrick Powell
,  and experimentally, you do:

 % cat opentest.c
 *
   test open on /dev/fd/0
 */
#include stdio.h
#include unistd.h
#include sys/types.h
#include sys/stat.h
#include fcntl.h
#include errno.h


int main( int argc, char *argv[], char *envp[] )
{
int fd;
close(0);
fd = open(/dev/fd/0,O_RDONLY);
if( fd == -1 ){
fprintf(stderr,open /dev/fd/0 failed - %s\n, strerror(errno) );
exit(1);
}
return(0);
}

 Linux and FreeBSD: 

 % make opentest
 % opentest /etc/hosts
 open /dev/fd/0 failed - Bad file descriptor

   So, this looks like the same behavior. 

   As for LINUX, here is the information from the 'man proc' (RedHat 9 release):

 fd This is a subdirectory containing one entry for each file
 which the process has open, named by its file descriptor,
 and which is a symbolic link to the actual file  (as  the
 exe  entry  does).  Thus, 0 is standard input, 1 standard
 output, 2 standard error, etc.

 Programs that will take a filename, but will not take the
 standard  input,  and which write to a file, but will not
 send their output to standard output, can be  effectively
 foiled this way, assuming that -i is the flag designating
 an input file and -o is the flag  designating  an  output
 file:
 foobar -i /proc/self/fd/0 -o /proc/self/fd/1 ...
   and  you  have a working filter.  Note that this will not
   work for programs that seek on their files, as the  files
   in the fd directory are not seekable.

 /proc/self/fd/N is approximately the same as /dev/fd/N in
 some UNIX and  UNIX-like  systems.   Most  Linux  MAKEDEV
 scripts  symbolically  link  /dev/fd to /proc/self/fd, in
 fact.


   OK, so seek should fail.  Right?  Says so in the documentation.  So, unbeliever that
   I am,  I will try an experiment.

 %cat seektest.c:
/*
   test seek on /dev/fd/0
 */
#include stdio.h
#include unistd.h
#include sys/types.h
#include sys/stat.h
#include fcntl.h
#include errno.h


int main( int argc, char *argv[], char *envp[] )
{
int fd;
fd = open(/dev/fd/0,O_RDONLY);
if( fd == -1 ){
fprintf(stderr,open /dev/fd/0 failed - %s\n, strerror(errno) );
exit(1);
}
if( lseek(fd,0,SEEK_SET) == (off_t)(-1) ){
fprintf(stderr,lseek /dev/fd/0 failed - %s\n, strerror(errno) );
exit(1);
}
fprintf(stderr,lseek /dev/fd/0 succeeded\n );
return(0);
}


 % make seektest
 % cat /etc/hosts |seektest
 lseek /dev/fd/0 failed - Illegal seek
 % seektest /etc/hosts
 lseek /dev/fd/0 succeeded

 We try this on FreeBSD and we get:

 % make seektest
 % cat /etc/hosts |seektest
 lseek /dev/fd/0 failed - Illegal seek
 % seektest /etc/hosts
 lseek /dev/fd/0 succeeded

   So at least the FreeBSD and Linux systems agree in this behavior.


 Ummm... so much for believing the documentation.

 Even when you RTFM the FM may not be correct.

Summary:

 Many of the existing utilities that expect to have input on FD 0 (stdin)
 and are passed /dev/fd/0 as a file parameter appear to fail or have 0 length
 input.  This appears to be caused by the application closing fd 0 and then
 opening /dev/fd/0.

 Avoid the use of /dev/fd/0 as a command line path unless you are sure that the
 implementors of the software will open and close the file descriptors correctly.

 Also, perhaps avoiding the use of '-' and /dev/fd/0 and sticking to the default
 for reading from stdin is the best method.

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any

LPRng: Testing mail list

2004-09-02 Thread Patrick Powell
This is a test of the LPRng mailing list.
Sorry to send you this,  but there appears to be no other way to find
out if addresses are active or not.

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: Xerox Phaser 8400

2004-08-06 Thread Patrick Powell
 From [EMAIL PROTECTED] Fri Jul 23 15:19:14 2004
 Date: Thu, 22 Jul 2004 11:23:44 -0700
 From: Ron Parachoniak [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: Xerox Phaser 8400

 Can anyone tell me if this printer works well under LPRng when page 
 accounting is needed?   If you do have it working could you share the 
 relevant info needed to get accounting working?  Is there any way to 
 account for B/W vs colour separately?  Thanks.

 -- 
 Ron

 Ron D. Parachoniak   UBC Physics  Astronomy DeptPh. (604)
838-6437
 System Manager   6224 Agricultural Road  Fax (604)
822-5324
 [EMAIL PROTECTED]   Vancouver, BC, Canada V6T 1Z1

I believe it does.  I would recommend using the SNMP method to get the
actual page counts, etc.  If you look at the MIB for the printer,
MMmmm... well, if you beat on Xerox and get the MIB for the printer,
you will find that it has information about the number of color
pages, mono pages, etc.

I don't happen to have a 8400, but I have tried this on the 8200, and
got the following information.

h110: {239} % snmp_printer_status -h 10.0.0.76
STATUS= Phaser 8200DP Ready To Print.
DEVICESTATUS= unknown
DEVICEDESCR= Tektronix, Inc., Phaser 8200DP,
(14.54/14.24.12.14.2001/14.60/3.106), LTH037137
PRINTERSTATUS= idle
PRTMARKERLIFECOUNT= 14656
STATUS= Phaser 8200DP Ready To Print.
DEVICESTATUS= unknown
DEVICEDESCR= Tektronix, Inc., Phaser 8200DP,
(14.54/14.24.12.14.2001/14.60/3.106), LTH037137
PRINTERSTATUS= idle
PRTMARKERLIFECOUNT= 14656
PAGECOUNT= 14656
STATUS= Phaser 8200DP Ready To Print.
DEVICESTATUS= unknown
DEVICEDESCR= Tektronix, Inc., Phaser 8200DP,
(14.54/14.24.12.14.2001/14.60/3.106), LTH037137
PRINTERSTATUS= idle
PRTMARKERLIFECOUNT= 14656
PAGECOUNT= 14656


The prtMarkerLifecount MIB entry gives the total number of pages printed
on the printer.
You can then record the starting and ending values of this entry and
calculate
the total number of pages.

Patrick





-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: Bug and question with incoming_control_filter and append_z (3.8.27)

2004-08-06 Thread Patrick Powell
 From [EMAIL PROTECTED] Mon Jul 26 14:12:10 2004
 Subject: LPRng: Bug and question with incoming_control_filter and
append_z
  (3.8.27)
 Date: Sat, 24 Jul 2004 12:33:52 -0400
 From: Daniel Sharpe [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]


 I recently upgraded from version 3.8.20 to version 3.8.27 and it
appears
 that if my incoming_control_filter modifies the Z line that the
 additional options giving in append_z or prefix_z are never added to
the
 Z line that lands in the hfA control file.  I don't have a system w/
 3.8.20 to test whether the options were added prior to calling the
 control_filter or after.

 An easy work around is to add them in the filter itself from the
 PRINTCAP_ENTRY environment variable.

 Also, in the documentation for the new incoming_control_filter in the
 release notes there is a strong warning against mucking with the
 contents of the A line.  Can someone with more background provide more
 details about the 'risks' of changing this line?  Is it safe to change
 the user and host info as long as the job number itself is not
touched?

 Thanks for any help,

 --Daniel


The append_z and prefix_z actions are done BEFORE the
incoming_control_filter.
The incoming_control_filter will then process/replace the line with new
or modified values.

The incoming_control_filter is the last action that is performed before
the
job data and control files are written to the spool queue.

The 'A' information is the 'job identifier'.  This is (hopefully)
a unique identifier for the job, and consists of the
[EMAIL PROTECTED]

Changing this value will have, I think, after looking at the code,  no
effect
on anything used/done by LPRng,  but may have side effects on other
parts of your system that use the job identifier.  Which appear to be
simply to report its value in the various status fields.

You can change the 'user' and 'host' information in the
incoming_control_filter, but you should be aware that these values
may be used for authentication in other parts of the printing system.
At the point where the incoming_control_filter modifies them they
are no longer used or checked during the incoming job processing.

Note that this information is not used to generate a new 'job
identifier',
so you will have to change that as well.

In the next release, if you are feeling REALLY agressive,  you can
even change the contents of the job data files.  You can even remove
them.  After running the incoming_control_filter, LPD will check to
see if the files are still present and if not, remove then from the
job file list.

Patrick

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)



-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: Question about interaction with Pharos Uniprint

2004-08-06 Thread Patrick Powell
 From [EMAIL PROTECTED] Tue Jul 27 12:44:50 2004
 Date: Tue, 27 Jul 2004 11:24:50 -0400
 From: Mike Shaddock [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: Question about interaction with Pharos Uniprint

 I am running LPRng 3.8.20 on Suns running Solaris 9.  The config is
set 
 up so that all print jobs are routed to a Pharos Uniprint (version
6.0) 
 server running on a Windows box (not sure exactly which version of 
 Windows).  When printing individual jobs, everything works fine, but 
 when we put the system into production with people printing from all 
 over campus, the Windows box would crash at least once a day.  I've
been

 looking everywhere that I can think of, but haven't found anyone else 
 having this problem.  Is anyone else out there using this combination?

 I'm including an editted version of my printcap file:

 lp
   :client
   :tc=.general,.eprint
   oh=xxx*.acpub.duke.edu

 .general
   :force_localhost@
   :mx=0
   :mc=0

 .eprint
   :[EMAIL PROTECTED]
   :if=/usr/local/libexec/filters/lpf
   :lpr_bounce=true

 Thanks!

 Mike Shaddock
 Senior Analyst, IT
 Systems and Core Services
 Office of Information Technology
 Duke University

I have had reports of various print spoolers running on Microsoft
Windows systems dying under heavy or continuous load.  One solution
was to 'rate limit' incoming jobs.

You can do this as follows:

in LPRng/src/common/lpd_jobs.c,  about ling 2357, you will find:


/* we put a timeout before each attempt */
if( attempt  0 ){
n = 8;
if( attempt  n ) n = attempt;
n = Connect_interval_DYN * (1  (n-1)) + Connect_grace_DYN;
if( Max_connect_interval_DYN  0  n  Max_connect_interval_DYN
){
n = Max_connect_interval_DYN;
}
DEBUG1(Service_worker: attempt %d, sleeping %d, attempt, n);
if( n  0 ){
SETSTATUS(job) _(attempt %d, sleeping %d before retry),
attempt+1, n );
plp_sleep(n);
}
}


   Change this to:
{
n = 8;
if( attempt  n ) n = attempt;
if( n == 0 ) n = Connect_grace_DYN; else
n = Connect_interval_DYN * (1  (n-1)) + Connect_grace_DYN;
if( Max_connect_interval_DYN  0  n  Max_connect_interval_DYN
){
n = Max_connect_interval_DYN;
}
DEBUG1(Service_worker: attempt %d, sleeping %d, attempt, n);
if( n  0 ){
SETSTATUS(job) _(attempt %d, sleeping %d before retry),
attempt+1, n );
plp_sleep(n);
}
}

Now you will sleep at least Connect_grace_DYN seconds between jobs.

Use the 'connect_grace' value in the printcap to set the interval
between jobs.

A value of 2  (2 seconds) seemed to solve somebody elses problems.

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)



-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: ifhp-3.5.16 / HP-UX 11i compile error

2004-08-06 Thread Patrick Powell
 From [EMAIL PROTECTED] Tue Jul 27 10:11:04 2004
 Date: Tue, 27 Jul 2004 13:07:27 -0400 (EDT)
 From: Ryan Novosielski [EMAIL PROTECTED]
 Subject: Re: LPRng: ifhp-3.5.16 / HP-UX 11i compile error
 To: LPRng Mailing List [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]

 I have gotten a little farther with this one.

 To get it to compile, I changed (in monitor.c):

 setlinebuf(stdout);

 to:

 setvbuf(stdout, (char *)NULL, _IOLBF, 0);

 ...only problem is, it doesn't work when built. Sits at the starting 
 transfer stage and doesn't move any farther along. I really need to 
 update my ifhp and I'd appreciate any help anyone could provide. The
issue 
 here is that HP-UX does not have setlinebuf, and has setvbuf instead.

 Thanks!

I thought that there were some 'compatibility' definitions that you
could enable by setting some compile time flags.

Patrick Powell



-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: Xerox Document Centre 235 - How ??

2004-08-06 Thread Patrick Powell
 From [EMAIL PROTECTED] Tue Jul 27 12:44:50 2004
 Date: Tue, 27 Jul 2004 14:59:10 +0800
 From: Uwe Dippel [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: LPRng: Xerox Document Centre 235 - How ??

 Uwe Dippel wrote:

  Currently I'm interested in printing. Google didn't deliver much.
  I can ping the machine well; I also tried Generic PostScript and
PCL; 
  but both don't show anything at all.

 Thanks for the input so far.
 Though it doesn't work, I might add how it works with Windows; since I

 saw it doing so and checked the settings:

 Standard TCP/IP Port
 Set IP
 Standard device type Xerox DCS
 Manufacturer Xerox and Printers Xerox Document Centre 230

 YMMV.

 Thought, this might give an indication, though: when the chaps print 
 from Windows, the display shows an 'LPD' before printing. So I
thought, 
 they'd use something else, not TCP/IP. But they don't, and here I
don't 
 even get the LPD to appear.

You can enable 'BSD' AKA UNIX printing,  but you have to set this up
on Windows XP and 2000 systems by adding the protocol support through
the Control Panel/Add Software/Windows/Additional Services
or a similar path.  You can then get the system to use the LPD (RFC1179)
protocol to send the job to the printer.

Patrick Powell



-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: Tek Phaser 790

2004-07-23 Thread Patrick Powell
 From [EMAIL PROTECTED] Thu Jul 15 13:21:49 2004
 Subject: LPRng: Tek Phaser 790
 From: Michael J. Carter [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Date: Wed, 14 Jul 2004 15:32:33 -0600

 Any of the various phaser filters in ifhp work with this model? Tray
 selection would be very nice to have.

 mjc

 -- 
  For ISR-3 IT Team system administration requests,
  please see http://computing.isr.lanl.gov/support.

 Michael J. Carter  | Try not to have a good time ... This
is
 IT Team Leader | supposed to be educational. --
Charles
 Space Data Systems (ISR-3) | Schulz
 Los Alamos National Laboratory |

Tek 780 appears to be the closest choice.

Patrick



-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: How to release a stalled job

2004-07-23 Thread Patrick Powell
 From [EMAIL PROTECTED] Mon Jul 12 13:16:54 2004
 From: Giulio Orsero [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: How to release a stalled job
 Date: Mon, 12 Jul 2004 10:37:58 +0200

 I've a system with LPRng 3.6.12

 How can I force a stalled job (destined to a remote lpd printserver)
to
 be
 retried immediately?

 Sometimes the printserver has problems, and when it's back online the
 first
 job is marked as stalled and blocks all the others, if I remove the
 1st
 job then all others go through imediately ok.

 I'll upgrade to a newver LPRng version if the upgrade is known to
solve
 this
 specific issue in some way.

 Thanks

 -- 
 [EMAIL PROTECTED]

lpc kill

Does an lpc abort followed by an lpc start

from LPRng-3.2.1 onwards.

Patrick



-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: problem with as/ae in printcap

2004-07-23 Thread Patrick Powell
 From [EMAIL PROTECTED] Mon Jul 19 11:17:40 2004
 Date: Mon, 19 Jul 2004 18:16:34 +0200
 To: [EMAIL PROTECTED]
 Subject: LPRng: problem with as/ae in printcap
 From: Jerome Alet [EMAIL PROTECTED]

 Hi there,

 from an accounting filter launched with as and/or ae in printcap 
 file, I'd like to know what is the correct way to access to the 
 job's datas 

 I've done some testing, and I used to have the HF environment 
 variable contain df_name=name_of_data_file, but now I don't have it 
 anymore and it seems HF now contains an encrypted list of data 
 files (seperated by Ctrl+A and Ctrl+B characters, instead of a 
 single one, and in a different HF variable. 

 I don't remeber having changed anything and the (single) file 
 printed is the same, so I'd like to know what is the always 
 correct way to, from an accounting script, access to the job's data 
 file(s) contents. 

 thanks in advance for any answer

 Jerome Alet


I am making sure that the 'DATAFILES' environment variable that will
contain
the names of the datafiles, relative to the current directory,
i.e. - the spool directory.  These will be a whitespace separated
list of files.

This will be in the next release - actually I am just testing
this right now.

Comments:

The :as  (accounting start) and :ae (accounting end)
are called BEFORE processing any of the print jobs.

You can assume the following:

CF is the image of the 'Job Ticket' file (Ummm... used to be
called the 'hold file'... :-)

The 'hfdatafiles' is the list of data files to be printed.
These are ^A separated entries, one per 'file to be printed'.

Note that you could have: lpr f1 f1 f1

hfdatafiles=entry for f1^Aentry for f1^Aentry for f1^A

OR you could do:  lpr -C3 f1 and have
hfdatafiles=entry for f1, copies = 3^A

It is very confusing :-)

Each entry is a list of key=value pairs, with
 'transfername' = use this if no openname

So, you can try the following PERL code:

my $HF = $ENV{CF};
my $entries = {};

my @list = split( \n, $HF );
foreach my $line (@list){
my ($key,$value) = split( '=', $line, 2 );
$entries-{$key} = $value;
}

my $hfdatafiles = $entries-{hfdatafiles};

my $datafiles = [];
@list = split(\001,$hfdatafiles);
foreach my $line (@list){
my @fields = split(\002,$line);
my $info = {};
foreach my $pair (@fields){
my ($key,$value) = split( '=', $line, 2 );
$info-{$key} = $value;
}
push @{$datafiles}, $info;
}

# $datafiles is now an array of hash information.  You can get
# a list of the files by doing:

my @files = map { $_-{transfername} } @list;

Ummm... note that this may cause duplicate entries.
 For example:  lpr f1 f2 f1 f2 will result in (f1, f2, f1, f2)



-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: translation

2004-07-23 Thread Patrick Powell
 From [EMAIL PROTECTED] Mon Jul 12 03:56:33 2004
 Date: Wed, 7 Jul 2004 11:36:09 +0200
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 From: [EMAIL PROTECTED](Walter Harms)
 Subject: LPRng: translation


 hi patric,
 i did not get any response from the translation i send to the list.
 will it be included in the next release ?

 mfg
 wh

Added it.  Sorry for the delay.

Patrick




-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: Experiences with printers

2004-07-23 Thread Patrick Powell
 From [EMAIL PROTECTED] Wed Jul 14 17:03:58 2004
 Date: Wed, 14 Jul 2004 12:07:25 -0500
 From: John Perkins [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: LPRng: Experiences with printers

 On Wed, 30 Jun 2004 13:25:21 +0200
 [EMAIL PROTECTED] wrote:

  We have about twelve HP-4550DN series Laserprinters that needs to be
  replaced. I was just wondering if you guys would share any
experiences
  with new HP's or any other brand in the sense of do or don't or must
 or
  must (absolutely) not as far as compatibility or operational issues
 are
  concerned. 

 We've got one Lanier LP020c (a Ricoh Aficio CL2000N rebadged).  We've
 run
 into problems with this printer flat out crashing every 3-5 days, even

 if it doesn't print anything.  When it's running, it prints ok,
although

 it won't accept transparency media from the paper trays.  We find that

 feature a little irritating, but the printer crashing--locking up
with
 a service code on the display, no response over the network--is an 
 issue.

 If you opt to try one of these, push for a demo product or return
period

 in case you have trouble with reliability...

 -- 


 
John Perkins |   University of
Wisconsin-Madison
Associate Researcher |   Department of Computer
Science
[EMAIL PROTECTED]|   1210 W. Dayton St.
608-262-0438/608-262-6626 FAX  |   Madison, WI  53706-1685


 


I strongly suspect hardware (CPU, ram, power supply) issues.

Have you tried 'crashing' it off of the table and having it 'fixed'
under a maintenance contract?  Gives new meaning to 'printer fault'.
If you do not feel that doing this is ethical (i.e. - it may leave
visible damage marks and/or fingerprints),  then there is always
the infamous 'tazer tickle.'

Just curious.  I would NEVER do this myself, of course.

As for the transpareny issue,  you may need to use transparencies
that have an opaque strip on the edge.  Some systems use LEDs to
detect paper out conditions and they shine right through the
transparency.

Usually the 'manual feed' tray has a mechanical 'lever' which detects
them.

Patrick (That boom?  Just another system crash.  Wait until you
   hear the core dump.) Powell

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)



-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: german translation

2004-07-23 Thread Patrick Powell
 From [EMAIL PROTECTED] Thu May 20 09:14:58 2004
 Date: Wed, 19 May 2004 17:11:29 +0200
 To: [EMAIL PROTECTED]
 From: [EMAIL PROTECTED](Walter Harms)
 Subject: LPRng: german translation


 --1084979621-MIME-Part-Dividor
 Content-type: text/plain; charset=us-ascii
 Content-Disposition: inline

 hi list,
 attached is the alpha release for the german translation.
 Everyone interessed may take a look and post corrections, hints etc to
me.

 regards,
 walter

 ps: 
 thx to Ingo Luczkiewicz for crosschecking the translation


Added to the current LPRng 3.8.29 source.  Will be in next release.

Patrick Powell




-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


LPRng: Anybody have a Xerox Document Center 235?

2004-07-23 Thread Patrick Powell
I would like to try some tests on it.

In North America, better yet, California.

On a network, of course...

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)



-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: DNS Resolution Issue

2004-07-23 Thread Patrick Powell
 From [EMAIL PROTECTED] Tue Jul 13 15:48:20 2004
 Date: Mon, 12 Jul 2004 15:07:26 -0500
 From: Russell Adams [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: DNS Resolution Issue

 I recently had a problem on AIX with LPRng 3.8.26 where printing
 commands hung for up to ten minutes before printing, querying status,
 etc.

 Even doing an lpq --help hung! That shouldn't involve any remote
 queries...

 The situation was that one of our DNS servers had stopped responding
 to queries (still up, but service died). The primary DNS server and
 another secondary were still available.

 The problems with LPRng persisted until we restarted the DNS service,
 however AIX and our other software products didn't have problems
 resolving names during that time period.

 Does LPRng use a custom resolve library or another unusual method for
 lookups? I'm trying to figure out why LPRng responded that way when
 there were other DNS servers available.

This is odd.

Check the output of the configure facility and see what
libraries it is using.

I suspect that part of the problem might be that you did not have
the other DNS servers listed in the /etc/resolv.conf file.

By the way,  I really recommend using a local DNS server in caching
mode.  You can then have:

/etc/resolv.conf:

nameserver 127.0.0.1
search your.local.domain

In /etc/namedb/named.conf (or whereever the named configuration is):


options {
forwarders { 10.0.0.2;  };   put the IP ADDRESSES
of your DNS servers here
directory /etc/namedb;
pid-file /var/run/named/pid;



 Russell

You will find that your performance and reliability will greatly
increase.

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)



-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: LPRng 3.8.27 w/ ifhp-3.5.17 - missing port on appsocket/SNMP printer

2004-07-23 Thread Patrick Powell
 [EMAIL PROTECTED]

If you have major problems,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: short request line

2004-07-23 Thread Patrick Powell
 From [EMAIL PROTECTED] Fri Jul 16 15:48:51 2004
 Date: Fri, 16 Jul 2004 12:51:20 -0700
 From: Jim McCloskey [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: short request line

 Hello. 

 I have a Debian linux box which runs LPRng version 3.8.27 as its
 printer spooler. It functions as a firewall/router for a home network.

 I set up /etc/hosts.lpd and /etc/lprng/lpd.perms so that this box will
 handle print-requests from the laptops that are also part of the home
 network (the printer is an HP LJ1100 connected to the parallel port of
 the Debian box).

 This all works great from my own laptop, which also runs Debian (and
 has the same version of LPRng). But there is also an OS X laptop in
 the house, and print requests from that machine are refused. The
 resulting message in /var/log/lpr.log is:

  Service_connection: short request line '^B', from '192.168.1.101 port
 836'

 I haven't had much luck so far in tracking down what this error
 message means or what lies behind it, though I assume that whatever
 lies behind it is what is causing print-requests from the OS X machine
 to be refused.

 Does anyone know how this problem might be solved?  I'd be very
 grateful indeed for any help or pointers.  

 Thanks very much for your time,

 Jim McCloskey


This appears to be an error in the LPD protcol implementation by Apple.
The sequence
actually sent is '\002\n.  This is a 'receive a printer job' sequence
without
a print queue name.  From RFC1179, we have:

5.2 02 - Receive a printer job

  ++---++
  | 02 | Queue | LF |
  ++---++
  Command code - 2
  Operand - Printer queue name

   Receiving a job is controlled by a second level of commands.
The
   daemon is given commands by sending them over the same
connection.
   The commands are described in the next section (6).

   After this command is sent, the client must read an
acknowledgement
   octet from the daemon.  A positive acknowledgement is an
octet of
   zero bits.  A negative acknowledgement is an octet of any
other
   pattern.

Note the 'Queue' name.  This is missing.  If a queue name is not
supplied,  then how can you determine the queue to print to?

I STRONGLY recommend that you report this to Apple and get a fixed
version
of their software.

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)



-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: pagecount-problem with ifhp and hp8000

2004-07-23 Thread Patrick Powell
 From [EMAIL PROTECTED] Thu Jul  8 16:30:17 2004
 Date: Thu, 08 Jul 2004 18:17:26 +0200
 From: Timm Pieper [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: pagecount-problem with ifhp and hp8000

 Hi there!

 I have a problem with querying the pagecounter of a hp8000-printer
with 
 ifhp: I always get a pagecount of 0.

 With a little tool 'qpc' I am able to query the counter of the hp8000,

 and the ifhp-pagecount also worked correctly with a hp5m printer and
the

 same ifhp-options.

 I noticed that there are no entries like 'sync done' and 'end of job 
 detected' in the status-file, like it does with the hp5m printer.
 Everything is accomplished within 1 second, whereas with the hp5m it 
 took about 30 seconds from sync to end of job.
 I've also run ifhp-diagnostics to make sure that the status-, sync-, 
 pageount- and waitend-flags are set at runtime.

 I have ifhp v3.5.7-2 and lprng v3.8.10-1.2 installed.

 /etc/printcap:
 pergament|PS;r=600x600;q=medium;c=gray;p=a4;m=auto:\
  :lp=:\
  :rm=129.69.35.101:\  remove
  :rp=raw:\remove
 Try using:
   :lp=129.69.35.101%9100
  :ifhp=model=hp8000:\
  :filter=/usr/lib/ifhp/ifhp -Zpaper=a4 \
  -Taccounting=/var/spool/lpd/acct.sh:\
  :sd=/var/spool/lpd/pergament:\
  :lf=/var/spool/lpd/pergament/log:\
  :af=/var/spool/lpd/pergament/acct:\
  :mx#0:\
  :sh:

 /var/spool/lpd/pergament/status:
 using model 'hp8000' at 11:43:14.474
 setting up printer at 11:43:14.478
 pagecounter 0 at 11:43:14.478
 started ACCOUNTING- 'acct.sh' at 11:43:14.479
 sending job file at 11:43:14.582
 starting transfer at 11:43:14.582
 initial job type 'POSTSCRIPT' at 11:43:14.583
 decoded job type 'POSTSCRIPT' at 11:43:14.583
 job type 'POSTSCRIPT' at 11:43:14.583
 transferring 394468 bytes at 11:43:14.583
 25 percent done at 11:43:14.590
 51 percent done at 11:43:14.596
 77 percent done at 11:43:14.602
 sent job file at 11:43:14.607
 pagecounter 0, pages 0 at 11:43:14.608
 started ACCOUNTING- 'acct.sh' at 11:43:14.610
 done at 11:43:14.854

 Any help would be appreciated,

 Timm Pieper

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)



-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: problem not mentioned in all docs, AFAIK

2004-07-23 Thread Patrick Powell

 From [EMAIL PROTECTED] Thu Jul 22 10:56:08 2004
 Date: Thu, 22 Jul 2004 19:55:45 +0200
 From: Mario Vanoni [EMAIL PROTECTED]
 To: Patrick Powell [EMAIL PROTECTED]
 CC: Patrick Powell [EMAIL PROTECTED]
 Subject: Re: LPRng: problem not mentioned in all docs, AFAIK



 Patrick Powell wrote:
 From [EMAIL PROTECTED] Sat Jul 10 09:18:50 2004
 Date: Sat, 10 Jul 2004 18:18:22 +0200
 From: Mario Vanoni [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: problem not mentioned in all docs, AFAIK
 
 - serial ports (Cyclades) with DEC vt510 screens
 
 - each vt510 has a parallel printer port connection
 
 - each vt510 has whith them his own printer
 
 - our print system imitates ATT's lp(1) (ab)using
the BSD-lpr, it works now since 6 years
on the production machine with GNU/Linux SuSE 7.3
 
 - installed LPRng 3.7.4 from the SuSE DVD 7.3,
works under parallel and (direct) serial ports
 
 - does'nt work for printers attached on vt510's,
permission denied error on mails (user + tty!)
 
 - workaround, probably not secure and very _BAD_:
on /etc/profile[.local on SuSE 7.3]
we determine the attached port for the vt510's
LPTTY=`tty`
adding now for each type of line/terminal:
chgrp lp ${LPTTY}
all vt510 printers now works as usual
  
  
  This is a well known problem with many (all?) Linux, *BSD, and other
  systems that do dynamic device creation (loadable drivers) and when
the
  /dev/XXX device entries are created dynamically.
  
  The problem is that there are no (few?) facilities to cause the
ownership
  to be set 'correctly', as it usually defaults to 0600 (owned by
root).
  Usually you have to
  
  a) do a modprobe to load the device driver.  This is common
 when you need a printer:
   modprobe lp

 Impossible.  Static compiled kernel, no modules allowed.
 And always the last stable from the 2.4 Linux branch.

  
  b) chown/chmod/chgrp the /dev/xxx entries.
   chown lp:lp /dev/lp[0-9]*
  
  Under these conditions I usually modify the /etc/init.d/lprng.sh
  startup script and add the entries there.
  
  Similar method works on *BSD systems,  using the
/usr/local/etc/rc.d/lprng.sh
  startup script and the *BSD module loading methods.

 Impossible.  Production machine runs 24/7/36[56], nearly 99.999.

 Users do login/logout more times a day.  Login resets the permissions
 on the /dev/ttyC## Cyclades/VT510 lines.  Checked!
 Do chmod 0660 /dev/ttyC* then chgrp lp /dev/ttyC* say 06:00.
 Looks good, login and no printer working.

I suggest adding lp to the user's group:

Password:
  lp:lpid:lpgroup:...
  user1:user1id:user1group:...

Groups:

  user1group:...:user1id,lpid
  user2group:...:user2id,lpid

I assume that on open it sets the user and group on the device to
the user's UID and GID?


 Probably my solution is the only workaround,
 /etc/profile, executed by login with root permission,
 is able to change the permission.


 IMPORTANT QUESTION:
 Where is the limit of checkpc(8) for printcap entries?
 Now we have approx 400, due to our simulation of
 ATT's lp(1) and his interface, and checkpc -f and
 checkpc -f -V (about the 50th entry)
 at some point freezes, after 30min Ctrl-C.
 With the new machines we will reach 1000 entries.


You can use:
   checkpc -P printer
which only does the checks for the specified printer.


 Many thanks for your response and time.

 Mario Vanoni



-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: Logging to syslog?

2004-07-22 Thread Patrick Powell
 From [EMAIL PROTECTED] Wed Jul  7 14:24:26 2004
 Date: Tue, 06 Jul 2004 16:54:49 -0700
 To: [EMAIL PROTECTED], [EMAIL PROTECTED]
 From: Simon Matthews [EMAIL PROTECTED]
 Subject: Re: LPRng: Logging to syslog?

 At 09:30 AM 7/3/04 -0700, Patrick Powell wrote:
   From [EMAIL PROTECTED] Thu Jul  1 15:59:51 2004
   Date: Wed, 30 Jun 2004 15:03:41 -0700
   To: [EMAIL PROTECTED]
   From: Simon Matthews [EMAIL PROTECTED]
   Subject: LPRng: Logging to syslog?
  
   Can lprng log via a normal syslog daemon listening on udp/515? If
 so,
   how
   do I set the facility and log level?
  
   Simon
 
 LPRng sends various log message to the syslogd using the 'syslog()' C
 interface.  The communication link may actually be a UNIX socket,
 rather
 than a TCP/IP network connection.
 
 What log messages are you trying to record?

 Files printed, debug information, etc. It would be a start if I knew
 what 
 facility is used by lprng, so I could see where syslog is putting it.

 Simon

Look in the Printing Cookbook.  There is a short summary.  But:

a)  use lpq -L to see the 'latest' information for a print queue.
   Derived from:

   spool directory (:sd)
 printer control file (control.pr) - current printer/queue status
 print queue actions log: status.pr
 print filter: status
 error and diagnostic log file: log

   The lpq -L shows all but the log file - there is 'security' sensitive
   information in the log file that is really not safe to be displayed.

b) The 'syslog' entries are really for the top level 'lpd' process and
for
   really strange problems encountered while attempting to do a printing
   operation.

   If your syslog support has LOG_LPR then we syslog to LOG_LPR
   else we syslog to LOCAL0

#ifdef LOG_LPR
# define SYSLOG_FACILITY LOG_LPR
#else
# ifdef LOG_LOCAL0
#  define SYSLOG_FACILITY LOCAL0
# else
#  define SYSLOG_FACILITY (0) /* for Ultrix -- facilities aren't
supported */
# endif
#endif

 Here are the levels, and the usual conditions

  LOG_CRIT - absolutely catastrophic error or problem - LPD almost
certainly dies
  LOG_ALERT - bad, really bad.  LPD limps on, more than likely dies
  LOG_ERR  - serious problem, usually on a spool queue.
 LPD may give up servicing particular spool queue.
  LOG_INFO - some unusual problem, condition, whatever.  Usually spool
queue
 related. Operation usually retried. Usually transitory in
nature,
 but system related.  Most commonly seen on heavily loaded
systems
 when process cannot open socket,  name resolution fails,
etc.
 Information is put in queue log file,  but also into syslog
 for more 'permanent' record of a failure condition.
  LOG_NOTICE - (same as INFO)
  LOG_DEBUG - debug information,  use syslog as log file not available.


Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)



-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: CUPS - LPRng Gateway ?

2004-07-06 Thread Patrick Powell
 From [EMAIL PROTECTED] Fri Jul  2 16:30:57 2004
 Date: Fri, 02 Jul 2004 09:01:06 +0200 (CEST)
 From: Helmut Jarausch [EMAIL PROTECTED]
 Subject: Re: LPRng: CUPS - LPRng Gateway ?
 To: [EMAIL PROTECTED]

 On 30 Jun, Patrick Powell wrote:
  One of the LPRng users has just invoked his 'Make it so, Dr. Powell'
  clause
  of the support contract.
  
  I will be adding IPP support in the next major release.
  

 Hi Patrick,
 that's good news!
 I don't want to be impudent, but is there any
 time horizont for such a release?

 Many thanks,
 Helmut.

 -- 
 Helmut Jarausch

 Lehrstuhl fuer Numerische Mathematik
 RWTH - Aachen University
 D 52056 Aachen, Germany


I reviewed the overall software design on my plane trip,  and
will be imlementing it in stages:

a) modification of the low level IO to handle SSL, Kerberized,
   socket, and UNIX socket connections.  This will allows
   SSL to be supported.
b) BSWS (Bloody Stupid Web Server) to be ported to LPRng to provide
   Web Pages for LPQ, etc.
c) IPP low level protocol support
d) IPP high level protocol support
e) Job Submission

I may also include some patches for Samba to better support
LPRng.

Patrick (4 weeks...  First, Software Libre in Bordeaux next week...
  then sober up and let my liver dry out after visiting the
  Cognac and Bordeaux regions...  Then its into the locked
  room and coding for 4 weeks.) Powell



-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: duplicate postings?

2004-07-01 Thread Patrick Powell
 From [EMAIL PROTECTED] Mon Jun 28 16:27:48 2004
 From: Dave Lovelace [EMAIL PROTECTED]
 Subject: LPRng: duplicate postings?
 To: [EMAIL PROTECTED]
 Date: Mon, 28 Jun 2004 17:43:20 -0400 (EDT)

 Am I the only one getting duplicate postings?  This is the second copy
of
 this one, and I got several copies of the one it's responding to.

 -- 
 - Dave Lovelace
   [EMAIL PROTECTED]
   [EMAIL PROTECTED]

The code to  check to see if a moderated posting had been
previously authorized had a small bug in it.

Patrick (Who the *())(* allowed $ to be put into the Message-ID
field?) Powell



-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: LPRng mailing list under SPAM attack

2004-07-01 Thread Patrick Powell
 From [EMAIL PROTECTED] Tue Jun 29 13:40:07 2004
 Date: Tue, 29 Jun 2004 06:15:37 +0200
 From: Willi Burmeister [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: LPRng: LPRng mailing list under SPAM attack

 Hi Patrick,

  Well, apparently the Spammers have caught on to this type of
  thing.  I have just found that our secondary mail server is getting
  about 10 times the mail that the actual mail server is.

 We have installed milter-sender on both primary and secondary MX.
 milter-sender on secondaries can than be configured to ask the
 primary for real accounts. This works great.

  G  I have spent more time on mail issues in the last month
  than any other professional activity.

 Fight against spam is really time consuming these days. I'm spending
 20%-30% of my daily time on mail related works :-(

 Willi


I just peeked at it:
http://www.snert.com/Software/milter-sender/

It looks pretty good as well.  I will install this and
give it a try.

Patrick



-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: CUPS - LPRng Gateway ?

2004-07-01 Thread Patrick Powell
 From [EMAIL PROTECTED] Tue Jun 29 13:40:08 2004
 Date: Tue, 29 Jun 2004 17:23:56 +0200 (CEST)
 From: Helmut Jarausch [EMAIL PROTECTED]
 Subject: LPRng: CUPS - LPRng Gateway ?
 To: [EMAIL PROTECTED]

 Hi 

 I've checked with Maplesoft.com and it's true that current
 and probably future versions of Maple can't print with LPRng
 on a Unix machine. So I am in need of a simple CUPS-LPRng
 gateway in Perl or Python which fakes CUPS.

 If Maple doesn't recognize CUPS (I don't know what it
 wants to see) one cannot print even not to a file.

 Since Linux users are only a tiny minority of Maplesoft customers
 I don't have any hope they are going to change this.
 They say
 As described here (for Maple 9):
 http://www.maplesoft.com/support/Faqs/Maple9/Installation/2.shtml,
 because the Standard worksheet is a Java application, 
 it requires that the printer be configured to use Common UNIX Printing
 System (CUPS) 
 services.  Unless you can print from the Classic Worksheet
environment, 
 there is not much else we can suggest other than installing a version
of
 CUPS.

 Any help is appreciated,

 Helmut Jarausch

 Lehrstuhl fuer Numerische Mathematik
 RWTH - Aachen University
 D 52056 Aachen, Germany


One of the LPRng users has just invoked his 'Make it so, Dr. Powell'
clause
of the support contract.

I will be adding IPP support in the next major release.

Patrick



-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


LPRng: Re: job list handling

2004-06-28 Thread Patrick Powell
 From [EMAIL PROTECTED] Mon Jun 28 10:48:28 2004
 Date: Mon, 28 Jun 2004 10:42:31 -0700 (PDT)
 From: Charlie Root [EMAIL PROTECTED]
 To: undisclosed-recipients:;

 hi list,
 i need a pointer to the current job handling.
 i guess lprng scans the directory on every loop. so its takes quit
long
 to process a long list of entries.
 i plan a patch to cache the entries and reread the directory only when
 the list is empty.

 does anyone know where this is handled exactly and how ?

 mfg
 wh

The problem is compounded by the fact that when you add jobs
the priority of newly added jobs may be higher than the
current jobs in the queue.

To handle this,  each time a job is added to the queue,
it needs to be rescanned and the job priorities recalculated.
Also,  the LPC commands 'topq' and 'move' may cause the queue
to be rescanned.

And of course, your good friend LPQ will cause the queue to be
rescanned.

I have spent a fair amount of time on this problem,  and decided
that the only way to solve the problem is to NOT use the directory
structure, but to place all of the job information in a database.

The first couple of attempts to do this resulted in horrors, as the
file locking,  dbm versions, conflicting libraries, etc., caused
more headaches than I would have ever possibly imagined.

I backed out the use of the DBM database.

A possible improvement is to have one process SCAN the directory
and then cache the 'fstat' information and the 'control file'
contents.  The problem here is that each time a job is processed
(added to the queue, remove from the queue, etc.), this file would need 
to be updated.

Now, if this is of little or no concern to you,  then there
is a very quick fix. 

In the lpd_jobs.c file,  look for the code that checks to see if
a SIGUSR1 signal has arrived.  This sets a 'rescan' flag.
Comment out the code that checks this flag and does a 'rescan'.

There are a couple of other gotchas there,  basically dealing with
LPRM removing jobs,  but this will cause the queue to be scanned only
after all the jobs in the queue are processed in the order that
they were first in.

I may do this,  and add a 'scan_queue_only_when_all_jobs_processed'
option to invoke this.

Patrick (Don't look up?  Then why did you say 'duck?'  I don't see no
ducks?) Powell



-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: LPRng: LPRng mailing list under SPAM attack

2004-06-28 Thread Patrick Powell
 From [EMAIL PROTECTED] Thu Jun 24 07:12:25 2004
 Date: Thu, 24 Jun 2004 07:03:36 +0200
 From: Willi Burmeister [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: LPRng: LPRng mailing list under SPAM attack

 Hi Patrick,

  Any other suggestions?
  
 Greylisting on the incoming mail server.

  I wonder what other email lists are doing to control Spam attacks?

 we have installed greylisting in the incoming mail server, and our
 spam rate has changed from nearly 80% to under 5%

 Take a look at this URLs:

 - http://projects.puremagic.com/greylisting/
 - http://www.snert.com/Software/milter-sender/index.shtml

 Willi

Well, apparently the Spammers have caught on to this type of
thing.  I have just found that our secondary mail server is getting
about 10 times the mail that the actual mail server is.  The
secondary will accept the mail then send it to the mail server,
which bounces it.  The secondary will then try to send a bounce
message back to the (non-existent, of course) spammer.


G  I have spent more time on mail issues in the last month
than any other professional activity.

Patrick


-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


LPRng: Effectiveness of anti-spam measures

2004-06-24 Thread Patrick Powell
SpamAssassin, out of the box,  was not very effective.  However,
there were several web sites that had some additional rules that seem to work better.

a)  The 'measles' rule set provided by one site looks for
'l33t' and other common hacker misspellings in message.

b)  Some 'body' checks that look for your usual viagra, etc.,
buzz/key words.

This now appears to be working fairly well.

I tried an experiment with the Bayesian filtering and training.

I fed it the last 6 months of the LPRng mailing list as 'ham'
and the last couple of days of 'spam' as 'spam'.  Ummm...
Well, it appears that most of the LPRng postings appear to be 'spam-like'
as the filtering was less effective.

I removed the training and went back to the rule set method.

Sigh.

But now instead of 11000 per day I have only 4 per day to look at.

Or some volunteer(s) to look at.

I am thinking aobut adding some 'obfuscation' to the postings to
remove or modify email addresses in headers/body so that mailing list
monitors do not pick them up.  Simple changes such as
[EMAIL PROTECTED] - user _at_ hostname.place
currently seem to be effective.

Any comments?


Patrick Powell

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


LPRng: LPRng mailing list under SPAM attack

2004-06-23 Thread Patrick Powell
Just for your interest,  there were 11121 spam attack messages sent to
the LPRng mailing list since about 3:00 pm PST on Friday and
7:15 am PST on Monday.

I am installing SpamAssassin as a first line defence against this.

Any other suggestions?

I wonder what other email lists are doing to control Spam attacks?

Patrick Powell


-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRng MAILING LIST
The address you post from or your Reply-To address 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.
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com for any announcements.
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


LPRng: LPRng mailing list is now moderated

2004-06-19 Thread Patrick Powell
I have changed the LPRng mailing list to a moderated list.

This requires that each posting be 'approved' by a moderator.
The reason for this is the current set of SPAM generators
have found a way to subscribe other ways to circumvent
the posting restrictions.

I am also looking for some moderators to help me.

The way that this works is postings are sent to you,
and you simply reply back with an 'accepted' indication
for the ones that should be posted to the mailing list.

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)


-
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,  call Patrick Powell or one of the friendly
staff at Astart Technologies for help.  Astart also does support for LPRng.
Also, check the Web Page at: http://www.lprng.com
Astart Technologies  (LPRng - Print Spooler http://www.lprng.com)
6741 Convoy Court
San Diego, CA 92111
858-874-6543 FAX 858-751-2435
-


Re: =?iso-8859-1?Q?Re:_LPRng:_Fixing_a_Windows_bug_with_LPRng??=

2004-04-27 Thread Patrick Powell
 From [EMAIL PROTECTED] Tue Apr 20 04:50:18 2004
 To: [EMAIL PROTECTED]
 Subject: =?iso-8859-1?Q?Re:_LPRng:_Fixing_a_Windows_bug_with_LPRng??=
 From: [EMAIL PROTECTED]
 Date: Tue, 20 Apr 2004 12:56:01 +0200


 Hi!

 Since I was curious, I figured I could use the information from this
 thread to try to program my own solution to my problem, as it seems
 that the next release of LPRng might still take some time to come out.
 In attempting to do this, I stumbled over the following issue:

 From http://www.lprng.com/LPRng-Reference/LPRng-Reference.html:
 ---snip---
 4.2. Sample Printcap Entry
 [...]
 Here is another example of a printcap entry using the %P notation:

 lp:[EMAIL PROTECTED]

 This entry will cause all jobs sent to the lp spool queue to be sent to
 the lp queue on server. %X strings in the printcap entries are expanded
 as shown: 
 Key Replaced By 
 %P printcap entry primary name (printer) 
 %Q queue requested 
 [...]
 ---snip---

 To verify this, I did the following (including checkpc -fV to make sure
 the dirs/perms are OK):

 printcap:
 bar|foo|*:\
   :lp=/dev/null:\
   :sd=/var/spool/lpd/foo:\
   :if=/usr/local/bin/test.pl %P %Q:\
   :la@:mx#0:\

 test.pl:
 #!/usr/bin/perl
 $foo=`logger test.pl has been called: @ARGV`;

 result in /var/log/messages (anonymized):
 Apr 20 xx:xx:xx xx logger: test.pl has been called:
 foo [EMAIL PROTECTED] -CA -D-xx-xx-xx:xx:xx.xxx -Ff 
 -Hxx.. -J/etc/samba/smb.conf -Lroot 
 -N/etc/samba/smb.conf -Pfoo -Qfoobar -aacct -b5402 
 -d/var/spool/lpd/foo -edfA644xx.. 
 -f/etc/samba/smb.conf -hxx.. -j644 
 -kcfA644xx.. -l66 -nroot -sstatus 
 -t-xx-xx-xx:xx:xx.xxx -w80 -x0 -y0 acct

 What happened to %Q? Of course, seeing the output of @ARGV, I figured
 that I can simply grep for -Q, but still I was wondering if I am
 misunderstanding the documentation or if something is wrong here.

 Patrick? 

 Kind Regards, 
 Stefan Baur

It appears that there is a fault in the documentation.  The %P and %Q
are expanded at the time the printcap is read.  The
$Q and $P expanded at the time the control file for job to be printed is
read.  Thus, %P and %Q are useful for INCOMING jobs, and on a queue basis,
while $P and $Q are for OUTGOING jobs, and on an individual job basis.

I know I must have had some reason for doing it this way, but I cannot
remeber the actual details.

For example, if you have

bar|foo|*:[EMAIL PROTECTED]

Then you would always have the jobs spooled to %P

If you have:

bar|*:[EMAIL PROTECTED]

then you would have the jobs spooled to the queuename at localhost:

lpr -Ptestqueue  would get jobs sent to [EMAIL PROTECTED]


But when the jobs are processed in the queue,  then the filter gets the
information from the actual job file:

 bar|foo|*:\
   :lp=/dev/null:\
   :sd=/var/spool/lpd/foo:\
   :if=/usr/local/bin/test.pl %P %Q:\
   :la@:mx#0:\

#!/bin/sh
echo $0 $@ /tmp/a
printenv /tmp/a

After doing: lpr /tmp/hi


I have:
more /tmp/a

/var/tmp/LPD/test.pl bar bar [EMAIL PROTECTED] -CA -D2004-04-27-12:54:17.639 \
 %P  %Q
   -Ff -Hh110.private -J/tmp/hi -Lpapowell -N/tmp/hi -Pbar -Qbar -aacct -b3 \
  $P   $Q
   -d/var/tmp/LPD/bar -edfA019h110.private -f/tmp/hi -hh110.private -j019 \
-kcfA019h110.private -l66 -npapowell -sstatus -t2004-04-27-12:54:17.000 -w80 -x0 
-y0 acct
USER=papowell
LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib
HOME=/home/papowell
PRINTCAP_ENTRY=bar|foo|*
 :if=/var/tmp/LPD/test.pl bar bar
 :la@
 :lp=/dev/null
 :mx#0
 :sd=/var/tmp/LPD/bar
...

Note the 'test.pl bar bar'

Now if I do: lpr -Pthisisatest /tmp/hi

I get:

/var/tmp/LPD/test.pl bar bar [EMAIL PROTECTED] -CA -D2004-04-27-12:56:50.244
-Ff -Hh110.private -J/tmp/hi -Lpapowell -N/tmp/hi -Pbar -Qthisisatest -aacct -b3
 $P  $Q
 -d/var/tmp/LPD/bar -edfA046h110.private -f/tmp/hi -hh110.private -j046
 -kcfA046h110.private -l66 -npapowell -sstatus -t2004-04-27-12:56:50.000 -w80 -x0 
-y0 acct

USER=papowell
LD_LIBRARY_PATH=/lib:/usr/lib:/usr/local/lib
HOME=/home/papowell
PRINTCAP_ENTRY=bar|foo|*
 :if=/var/tmp/LPD/test.pl bar thisisatest
 :la@
 :lp=/dev/null
 :mx#0
 :sd=/var/tmp/LPD/bar

I hope this helps.

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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

Re: LPRng: Runaway and DNS lookups

2004-04-27 Thread Patrick Powell
 From [EMAIL PROTECTED] Wed Apr 21 16:15:55 2004
 Date: Wed, 21 Apr 2004 17:27:17 -0500
 From: Russell Adams [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: Runaway and DNS lookups

 I've got a print queue with an lp entry for a printer who's DNS name
 was removed.

 Someone sent print to the queue, and of course LPRng can't resolve the
 name to contact the printer. This works properly.

 As an unintended consequence, LPRng has brought our DNS server to its
 knees with a tight loop of dns lookups that fail for the name that no
 longer exists. We're talking hundreds of lookups a second, being sent
 by a 2.4 ghz server to an old 400 mhz DNS box. It didn't stand a
 chance. =]


I am puzzled by this.  On the current release I did:

t1:
  :[EMAIL PROTECTED]

lpr -Pt1 /tmp/hi

and got:

Printer: [EMAIL PROTECTED] 'Test Printer 1' (dest [EMAIL PROTECTED])
 Queue: 1 printable job
 Server: pid 2454 active
 Unspooler: pid 2455 active
 Rank   Owner/ID   Pr/Class Job Files Size Time
active [EMAIL PROTECTED]A   452 /tmp/hi  3 13:44:30
Printer 'nohost.private' - cannot open connection - bad or missing hostname

If I change this to:
t1:
  :lp=nohost.private%9100


 Obviously I'll correct my printcap, however I don't think the tight
 loop to the DNS server was intended to work quite like that.

 I've tried updating my connect_interval to 5 seconds, but it did not
 change the behavior.

 I'm running 3.8.26 on Redhat ES 2.1.

 Russell


In the next release I will add a bit more debugging for situations like this:

h110: {290} % lpq -l
Printer: [EMAIL PROTECTED] 'Test Printer 1'
 Queue: 1 printable job
 Server: pid 12124 active
 Unspooler: pid 12125 active
 Status: opening TCP/IP connection to nohost.private%9100 at 14:16:36.347
 Status: cannot open 'nohost.private%9100' - 'getconnection: cannot get address for 
'nohost.private'', attempt 2, sleeping 20 at 14:16:36.349
 Rank   Owner/ID   Pr/Class Job Files Size Time
active [EMAIL PROTECTED]A   122 /tmp/hi  3 14:16:26
error  [EMAIL PROTECTED]A   801 ERROR: too many errors


Patrick

-
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: Debian Bug#245274: lpd goes into busyloop processing queue

2004-04-24 Thread Patrick Powell
On Sat, Apr 24, 2004 at 06:34:40PM +1000, Craig Small wrote:
 A Debian user has found that lprng goes into some tight loop and eats
 his CPU.
 
 I really cannot see what the problem is Patrick so I'm asking you for
 your assistance.
 
   - Craig
 
 - Forwarded message from Wichert Akkerman [EMAIL PROTECTED] -
 Package: lprng
 Version: 3.8.26-1
 Severity: grave
 
 lpd on my printserver goes insane occasionaly, apparently while
 processing a printjob. Symptoms are one or more lpd processes consuming
 all CPU while scanning over a print spool. I caught a strace of this
 which is availably at http://www.wiggy.net/tmp/lpd.bug.bz2 .
 
 The configuration is simple: I have two printqueues: a bouncequeue
 going directly to a printer and a permanently stopped queue on which
 jobs are submitted and then moved on demand to the other queue.
 
 This setup worked fine with previous versions of lprng.
 
 Wichert.
 
 -- 
 Wichert Akkerman [EMAIL PROTECTED]It is simple to make things.
 http://www.wiggy.net/   It is hard to make things simple.
 
 
 
 
 - End forwarded message -
 
 -- 
 Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
 Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
 csmall at : enc.com.au  ieee.org   debian.org

It appears to be a BUG!

When a job is 'moved' to a new queue the new job 'control file'
does not have appear to have the 'move' field in the 'control file' cleared.

I will check into this and fix this up.

Symptoms:  if you look at the 'read' and 'write' calls, you will find a 'move=...'
appearing in the values read or written.  This should not be the case if the
control file is for a new job or when moved to a new queue.


27626 open(/var/spool/lpd/cc-hp8150/temp00CorAtu, O_RDWR|O_CREAT|O_EXCL|O_LARGEFILE, 
0600) = 6
27626 fchmod(6, 0600)   = 0
27626 stat64(/var/spool/lpd/cc-hp8150/temp00CorAtu, {st_mode=S_IFREG|0600, 
st_size=0, ...}) = 0
27626 write(6, [EMAIL PROTECTED]:16:32.536\ndatafile_co
unt=1\ndone_time=0x0\nerror_time=0x0\nfile_hostname=random.ams.attingo.nl\nH=random.ams.attingo.nl\nheld=0x0\nhf_name=hfA13
7\nhfdatafiles=copies=0x1\2dftransfername=dfA137random.ams.attingo.nl\2format=f\2size=163434\1\nhold_class=0x0\nhold_time=0
x0\nJ=iws-d-1-2: 
http://www.cybertravelnetwork.com/cs/1.htm\njob_time=0x407fdcd1\njob_time_usec=0x8487d\nmove=cc-hp8150\nnu
   
  ^^
mber=137\nP=nobody\nprintable=0x0\npriority=A\npriority_time=0x0\nprstatus=moved-cc-hp8150\nQ=iwsqueue\nremotehost=localho
st\nremoteport=0x0\nremove_time=0x0\nserver=27626\nsize=163434\nstart_time=0x407fdcd1\nunixsocket=0x1\nupdate_time=2004-04-
16-15:17:05.588\n, 702) = 702
27626 close(6)  = 0
27626 rename(/var/spool/lpd/cc-hp8150/temp00CorAtu, hfA137) = 0
^^

-- 
Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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: Debian Bug#245274: lpd goes into busyloop processing queue

2004-04-24 Thread Patrick Powell
On Sat, Apr 24, 2004 at 06:34:40PM +1000, Craig Small wrote:
 A Debian user has found that lprng goes into some tight loop and eats
 his CPU.
 
 I really cannot see what the problem is Patrick so I'm asking you for
 your assistance.
 
   - Craig
 
 - Forwarded message from Wichert Akkerman [EMAIL PROTECTED] -
 Package: lprng
 Version: 3.8.26-1
 Severity: grave
 
 lpd on my printserver goes insane occasionaly, apparently while
 processing a printjob. Symptoms are one or more lpd processes consuming
 all CPU while scanning over a print spool. I caught a strace of this
 which is availably at http://www.wiggy.net/tmp/lpd.bug.bz2 .
 
 The configuration is simple: I have two printqueues: a bouncequeue
 going directly to a printer and a permanently stopped queue on which
 jobs are submitted and then moved on demand to the other queue.
 
 This setup worked fine with previous versions of lprng.
 
 Wichert.
 
 -- 
 Wichert Akkerman [EMAIL PROTECTED]It is simple to make things.
 http://www.wiggy.net/   It is hard to make things simple.
 
 
 
 
 - End forwarded message -
 
 -- 
 Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
 Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
 csmall at : enc.com.au  ieee.org   debian.org
 

Ummm it turns out that if you try forwarding to the same queue
then you get REALLY bad problems.  a-a-a, but you can detect this
by checking to see if the forward queue is the same as the current
queue.

But if you do:  forward a - b -a  then you get REALLY ugly problems.

If you are doing moves and forwards on the same host, then you can
detect this problem.  However, if you are doing this between hosts,
you have no way to detect this unless you keep a job history.

I am surprised that this did not show up before.

-- 
Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

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


LPRng: New release coming ASAP

2004-04-24 Thread Patrick Powell
I will add some more bug fixes into this and then put out the next
release.

Version LPRng-3.8.27 - Wed Apr 21 11:32:41 PDT 2004

  Fixed:  'Missing HOLD_FILE' logic error fixed in lpd_rcvjob.c
   (Noted by: Mark Tamisiea [EMAIL PROTECTED])
   (And another suggestion by: Christian Reiber [EMAIL PROTECTED])

  Fixed: configure with-initpath
--with-initpath=PATH now works correctly
   (Reported by: Jeff Bastian [EMAIL PROTECTED])

  Fixed (well, clarified):
   Errormsg() now checks for a 'null' error string and provides
   a printable version of errno for logging.

  Edited the Scan_queue() function to print error message and removed
   some dead code.
(Inspired by comments from: Russell Adams [EMAIL PROTECTED])

  lpc MOVE could result in endless loop.
(Problem reported by: Wichert Akkerman [EMAIL PROTECTED] to
  Debian bug list, forwarded by: Craig Small csmall at : enc.com.au)


-- 

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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: LPD Crashing with realloc error

2004-04-23 Thread Patrick Powell
 From [EMAIL PROTECTED] Thu Apr 22 07:38:11 2004
 Date: Thu, 22 Apr 2004 08:52:18 -0500
 From: Russell Adams [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Cc: Ritchie, Dale [EMAIL PROTECTED]
 Subject: LPRng: LPD Crashing with realloc error

 The lpd daemon has crashed twice now in three days with the error on
 the last line below.  I'm trying to understand what caused this whole
 block of errors. Some form of memory error?

 The realloc that failed in getqueue.c happens in the Get_fd_image
 function, and the terminating error in linelist.c occurs in Check_max.

 We're running LPRng-3.8.26 on AIX 5.2 compiled with GCC, with just
 under 1000 print queues.

 Apr 22 05:21:45 ksx1 (Server)[661170]: J025: realloc of 0x0, new size 633 failed, 
 file './common/getqueue.c', line 189 - NULL
 Apr 22 05:21:45 ksx1 (Server)[661172]: J026: Do_queue_jobs: cannot read queue 
 '/var/spool/lpd/J026' - NULL
 Apr 22 05:21:45 ksx1 (Server)[661174]: J027: Do_queue_jobs: cannot read queue 
 '/var/spool/lpd/J027' - NULL
 Apr 22 05:21:46 ksx1 (Server)[661176]: J028: Do_queue_jobs: cannot read queue 
 '/var/spool/lpd/J028' - NULL
 Apr 22 05:21:46 ksx1 (Server)[661178]: J029: Do_queue_jobs: cannot read queue 
 '/var/spool/lpd/J029' - NULL
 Apr 22 05:21:46 ksx1 (Server)[661180]: J02A: Do_queue_jobs: cannot read queue 
 '/var/spool/lpd/J02A' - NULL
 Apr 22 05:21:46 ksx1 (Server)[661182]: J02B: Do_queue_jobs: cannot read queue 
 '/var/spool/lpd/J02B' - NULL
 Apr 22 05:21:46 ksx1 (Server)[661184]: J02C: Do_queue_jobs: cannot read queue 
 '/var/spool/lpd/J02C' - NULL
 Apr 22 05:21:46 ksx1 (Server)[661186]: J02D: Do_queue_jobs: cannot read queue 
 '/var/spool/lpd/J02D' - NULL
 Apr 22 05:21:47 ksx1 (Server)[661188]: J02E: Do_queue_jobs: cannot read queue 
 '/var/spool/lpd/J02E' - NULL
 Apr 22 05:21:47 ksx1 (Server)[661190]: J030: Do_queue_jobs: cannot read queue 
 '/var/spool/lpd/J030' - NULL
 Apr 22 05:21:47 ksx1 (Server)[661192]: j031: realloc of 0x0, new size 408 failed, 
 file './common/linelist.c', line 351 - NULL
 Apr 22 05:21:47 ksx1 (Server)[661194]: j032: realloc of 0x0, new size 408 failed, 
 file './common/linelist.c', line 351 - NULL
 Apr 22 05:21:47 ksx1 (Server)[661196]: j033: realloc of 0x0, new size 408 failed, 
 file './common/linelist.c', line 351 - NULL
 Apr 22 05:21:47 ksx1 (Server)[661198]: j034: realloc of 0x0, new size 408 failed, 
 file './common/linelist.c', line 351 - NULL
 Apr 22 05:21:48 ksx1 Waiting[755296]: realloc of 0x0, new size 408 failed, file 
 './common/linelist.c', line 351 - NULL

 Russell

Hmmm...  This is very odd.  Not just the error, but also the NULL error message.

The proble is caused by a failing 'opendir(.)' system call, which causes
logerr_die( ... ) to be called, which calls Errormsg() to be called, which will
cause the strerror() routine to be called.  Apparently the AIX strerror() return
does not include error messages for the failure.

I will modify the 'Errormsg()' code to cover this case:

Errormsg( int err ){
if( !(msg = strerror(err)) ){
static char b[32];
snprintf(b,sizeof(b),errno=%d, err );
msg = b;
}
return(msg);

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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: HF_NAME information missing

2004-04-21 Thread Patrick Powell
On Mon, Apr 12, 2004 at 08:45:11PM +0200, Christian Reiber wrote:
 Hello Patrick,
 
 this is a reply to the thread LPRng: HF_NAME information missing in the 
 LPrng mailing list (the latest entry of that thread dates 
 Thu, 18 Mar 2004 23:15:58 -0800). Sorry that I send this mail directly to you,
 but it contains a solution which I do not want to release to the list before
 you have reviewed -- it is based on a more than vague knowledge what is going
 on, so I do not dare to publish it.
 
 You proposed a patch and two list members reported that this patch does
 not solve the problem. I experienced the same in a setup a where a 
 FreeBSD client with a plain classic lpd prints to a remote print server
 which runs LPRng. 
 
 I slightly changed the patch (for common/lpd_rcvjob.c) and now it works for me.
 I changed this line (line 435 in lpd_rcvjob.c):
 
 --
 DEBUGF(DRECV2)(Receive_job: eof on transfer, job.info.count %d, files.count 
 %d,
 job.info.count, files.count );
 if( hold_fd ){
 if( !discarding_large_job ){
 --
 DEBUGF(DRECV2)(Receive_job: eof on transfer, job.info.count %d, files.count 
 %d,
 job.info.count, files.count );
 !   if( hold_fd  0){
 if( !discarding_large_job ){
 --
 
 Traces showed that Check_for_missing_files() was called twice for this
 job, once from line 402 in lpd_rcvjob.c and a second time from line 439.
 I assume that this second call should not happen unless an hold file is
 allocated (so perhaps a if (hold_fd != -1) would even be better).
 
 I now have no more printing delays when submitting a print job. (I just have 
 one of those [EMAIL PROTECTED] problems where the printer is locked up after the 
 first
 postscript job and unfortunately I have not yet discovered what it is missing;
 printing from a Windows box the same way works flawlessly, using tons of 
 driver code supplied by the vendor. So it must be something in the postscript
 which makes it hang :-(
 
 In case you agree you will possibly want to post it on the list as a 
 follow-up to the mentioned thread (I am not a list member).
 
 Cheers  Christian
 
 -- 
 Christian Reiber, [EMAIL PROTECTED]

This appears to be the case.

I will add the patch and repost it.

-- 
Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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: ifhp-3.5.16/7

2004-04-21 Thread Patrick Powell
On Fri, Apr 16, 2004 at 01:53:47PM +0200, Reiner Linnenkohl wrote:
 Hello,
 
 since ifhp-3.5.16/17 i have the following problem:
 
 $ file insd2_neu_blade
 insd2_neu_blade: ISO-8859 C++ program text
 
 $ lpr -Pprinter2  insd2_neu_blade
 $ lpq -
 
 
 Filter_status: sending job file at 11:38:42.100
 Filter_status: starting transfer at 11:38:42.100
 Filter_status: file program = '/usr/local/bin/file 
 dfA146insl17.etec.uni-karlsruhe.de' at 11:38:42.100
 Filter_status: started FILE_UTIL- 'file' at 11:38:42.139
 Filter_status: file information = 'iso-8859_c++_program_text' at 
 11:38:42.144
 Filter_status: initial job type 'iso-8859_c++_program_text' at 11:38:42.145
 Filter_status: decoded job type 'msg' at 11:38:42.145
 Filter_status: job type 'msg', converter 'no_converter' at 11:38:42.145
 Filter_status: converter done, output 154 bytes at 11:38:42.163
 Filter_status: initial job type 'POSTSCRIPT' at 11:38:42.163
 Filter_status: decoded job type 'POSTSCRIPT' at 11:38:42.163
 Filter_status: job type 'POSTSCRIPT' at 11:38:42.163
 Filter_status: transferring 154 bytes at 11:38:42.163
 
 
 The paper comes out with the message No conversion available for type 
 'iso-8859_c++_program_text' .
 All other types of documents are printed correctly !
 Until ifhp-3.5.14 do not ocurrir this problem.
 
 I'm working on Solaris (SunOS 5.9 Generic_112233-11 sun4u sparc 
 SUNW,Sun-Blade-1000) with gcc-3.2.3,
 file-4.09, AFPL Ghostscript 8.00 and LPRng-3.8.26
 
 Is there anybody who could help,
 Thank's a lot,
 Reiner
 
 -- 
 Reiner Linnenkohl
 Universit?t Karlsruhe - Nachrichtentechnik
 Systemadministration - Tel.: +49 721 608-6502
 e-mail: [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.
 -


ifhp uses the output of the 'file' program to determine
the file type,  and then looks up the type in a table.

  Filter_status: file information = 'iso-8859_c++_program_text' at 
  ^^^
If you look in the ifhp.conf file, you will find:

# example conversion program
file_output_match = [
  *postscript*  ps   \%s{ps_converter}
  *pdf* ps   \%s{pdf2ps_converter}
  *pcl* pcl  \%s{pcl_converter}
  *pjl* pjl  \%s{pjl_converter}
  *printer*job*language* pjl
  *ascii*text*  ps  \%s{text_converter}
  *gzip_compressed*  filter  \%s{gzip_decompress}
  * msg  no_converter
  ]

Note that 'program text' may match some binaries.  From the /usr/share/magic
file,  which is used by the file conversion program:

# text if readable, executable if runnable binary, data if unreadable.

0   string /1\ :pserver:cvs password text file
0   string  -h- Software Tools format archive text
10  string  #\ This\ is\ a\ shell\ archive  shell archive text
0   string  @echo\ off  MS-DOS batch file text
0   string  \377WPC\020\000\000\000\022\012\001\001\000\000\000\000 (WP) loadable 
text

... and so forth

I you can add or change this by using:
file_output_match = [
  *postscript*  ps   \%s{ps_converter}
  *pdf* ps   \%s{pdf2ps_converter}
  *pcl* pcl  \%s{pcl_converter}
  *pjl* pjl  \%s{pjl_converter}
  *printer*job*language* pjl
  *ascii*text*  ps  \%s{text_converter}
  *program*text*  ps  \%s{text_converter}
  *gzip_compressed*  filter  \%s{gzip_decompress}
  * msg  no_converter
  ]

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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

LPRng: Re: LPRng on RedHat 9.0 talking to SCO print queues

2004-04-21 Thread Patrick Powell
On Tue, Apr 20, 2004 at 12:28:16PM -0400, bmohrhardt wrote:
 Dear Mr. Powell :
 
I have been integrating some RedHat 9.0 stations into my network, 
 replacing Windoze as much as possible. My servers are still both running 
 SCO Openserver 5.0.5, handling our main software applications as well as 
 the print queues. In order to get the network printers working, we 
 downloaded LPRng-3.8.19-3.1 from rpmfind.net and 'redhat-switch-printer' 
 to change from CUPS to LPRng. Attempting to print from the RedHat 
 stations using CUPS caused the jobs to sit on the local station's queue 
 and never get to the server.

You may want to get the latest RPM from http://www.lprng.com
or even just compile and install it from source.

 
The printing via LPRng works very well for modern HP printers 
 (LaserJet 4000,4100, 4200, 1200, 1300, etc.) We have had a couple of 
 issues, and I was just curious if you knew of a resolution. We have an 
 HP LaserJet 6P connected via an HP JetDirect 170x using TCP/IP with a 
 static IP address. Text-based jobs from our servers print all day long. 
 If the RedHat 9.0 station sets it up as a local (/dev/lp0) printer, it 
 works flawlessly. However, we cannot print to it from the RedHat 9.0 
 boxes using the UNIX (lpd) queue type. The job gets sent, but the 
 printer comes up with a line too long message, and the rest of the job 
 is garbled. It is almost as if the RedHat box is sending the remote 
 printing job using a level of PostScript that the older printer can't 
 handle. Yet, there is no option (unless I missed it) to lower the 
 PostScript level, if that is indeed the problem. This has been very 
 frustrating, and is slowing down my desire to migrate more of my users 
 away from Windoze.

I am puzzled by this one.  I have an HP6P here and it prints fine,
with NO filter.  The printcap setup  is:

lp6|HP Lazy Jet (slow):
  :sd=/var/spool/lpd/%P
  :lp=10.0.0.23%9100

 
The second issue is on our LaserJet 4100tn. As you know, the 't' 
 means that there is an additional 500-sheet tray, that is selectable (in 
 theory) using good-old ESC sequences. They stock Tray 1 with Letterhead, 
 so that it is only used when the user selects it. Tray 2 is the default 
 tray, and contains plain white 8 1/2 x 11 stock. I know that the raw ESC 
 sequence works, as I have been able to choose that tray for a text-based 
 job sent from the server. However, when the remote jobs are sent from 
 the RedHat boxes, we have not yet figured out how to access that 
 command. We have tried various options (-Zupper, -Ztray1, etc.), but we 
 have no way of being certain that the commands are even being passed 
 along. The remote jobs coming into my SCO servers seem to go directly to 
 the queue (rapidly) without even being processed by the interface scripts.

You need to use/add the ifhp filter:

lp:
  :sd=/var/spool/lpd/%P
  :if=/usr/libexec/filters/ifhp
  :ifhp=model=hp4100
  :lp=10.0.0.23%9100

Now try:  lpr -Plp -Ztray3
and see what happens.

 
I did try to download the .rpm for your newest version (3.8.26), but 
 maybe I did not do it right. The RedHat box complained that it 
 conflicted with the version of setup? Do I need to try to compile the 
 source code directly? I did notice in your Release Notes that one issue 
 that you resolved with the newer version was to stop certain options 
 from being dropped unintentionally, and I was hopeful that I had the 
 answer.
 
  Any help or suggestions or links that you could send our way would 
 be greatly appreciated. Again, the same older printer works like a charm 
 locally, it is just the jobs it sends remotely that mess up.
 
 
 Thanks,
 
 
 Bill Mohrhardt, IT Manager,
 
 Ecological Fibers, Inc.
 
 (401) 725-9700 Ext. 325
 
 (978) 537-0003 Ext. 105 (Wednesdays)
 
 [EMAIL PROTECTED]

-- 
Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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

Re: LPRng: RE: server printcap flag

2004-03-15 Thread Patrick Powell
 From [EMAIL PROTECTED] Fri Mar 12 15:08:27 2004
 From: Dwayne Pence [EMAIL PROTECTED]
 To: 'Patrick Powell' [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: LPRng: RE: server printcap flag
 Date: Fri, 12 Mar 2004 16:11:22 -0600

 I have lp:remote_support=R set, and this does prevent the lpq queries to
 the terminal server, but how can I get it to look at the local queue on
 the Linux box when I do the lpq after it sees that the remote doesn't
 support the lpq, ie /var/spool/lpd/printer_name, which is where the jobs
 will actually be queued at anyway since forced-local is on ?  


You need to allow clients to get all the informaiton, but the server
only to use 'lpr':

lp:client:[EMAIL PROTECTED]:force_localhost@

lp:.   (i.e. - the existing/standard printcap entry)
  :server:remote_support=R


 Thanks,

 Dwayne

 -Original Message-
 From: Patrick Powell [mailto:[EMAIL PROTECTED] 
 Sent: Friday, March 12, 2004 11:37 AM
 To: Dwayne Pence
 Cc: [EMAIL PROTECTED]
 Subject: Re: server printcap flag

 On Wed, Mar 10, 2004 at 11:55:30AM -0600, Dwayne Pence wrote:
  Hi Patrick,
   
  I am running running Redhat Linux 8, with LPRng and have a question.
  All of the printers are hung off a terminal server with serial ports,
  and it has a built in lpd.  So all of the printers in the printcap
 file
  have a :rm and :rp entries.  My problem is the terminal server lpd
  does/will not respond to lpq, lpstat requests, therefore I want the
  queues, stats to come from the Redhat box, not the terminal server.  I
  read an very old email from the LPRng list where you had mentioned a
  server printcap flag that only lpd would read, which I thought would
  work, but I don't think I understand how to put it in printcap.local.
  When I added it to an already defined printer that is in printcap and
  restarted lpd, it griped about overlapping entries, rp and lp.  Any
  suggestions ?  
   
  Thanks,
   
  Dwayne Pence

 You want to use the 'remote_support' option to prevent the
 lpq, etc. queries.  The option has the format:

 remote_support=RMQVC
 Where R= lpr, M = lprm, Q = lpq, V =lpc -v , C = lpc

 If you only want to use LPR then you can set:

 lp:remote_support=R

 -- 
 Patrick Powell Astart Technologies
 [EMAIL PROTECTED]6741 Convoy Court
 Network and System San Diego, CA 92111
   Consulting   858-874-6543 FAX 858-751-2435
 LPRng - Print Spooler (http://www.lprng.com)


 -
 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: lpd.perms problem

2004-03-15 Thread Patrick Powell
 From [EMAIL PROTECTED] Sat Mar 13 14:35:48 2004
 Date: Sat, 13 Mar 2004 22:48:37 +0100 (CET)
 From: Longina Przybyszewska [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: LPRng: lpd.perms problem

 On Fri, 12 Mar 2004, Patrick Powell wrote:
 My changes don't work - users listed in /etc/lpd/ok file cannot remove
 jobs from the server

  On Fri, Mar 12, 2004 at 02:21:24PM +0100, Longina Przybyszewska wrote:
   hi,
   can anyone tell me why the following setting in lpd.perms doesn't work?
   It is LPRng-3.8.21.
   The server controls 2 printers, for one of them I would like to allow
   other persons than root to remove jobs fra queue.
   My changes don't work (the rest  is default). WHat is wrong?
   
  
   # allow same user on originating host to remove a job
   ACCEPT SERVICE=M SAMEHOST SAMEUSER
   # allow root (and persons listed in /etc/lpd/ok)on server to remove jobs
   #   from printer d3
   ACCEPT SERVICE=M SERVER PRINTER=d3 REMOTEUSER=root,/etc/lpd/ok
  
   ACCEPT SERVICE=M SERVER REMOTEUSER=root
   REJECT SERVICE=M
   # all other operations allowed
   DEFAULT ACCEPT
   

OK, try the following:

d3:db=lprm+2,database+2:... # enable LPRM debugging

Now do:

lpc reread
lpc -Pd3 stop
lpr -Pd3
lprm -Pd3

Now look in /var/spool/lpd/d3/log
and look for lines with /etc/lpd/ok in them.  Error or failure
should be clear from this.

Patrick

-
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: Re: LPRng: Fixing a Windows bug with LPRng?

2004-03-15 Thread Patrick Powell
 From [EMAIL PROTECTED] Mon Mar 15 06:33:38 2004

   [printer]
   |
  [Windows Box]-LPD-[Lexmark Box]
   |
   [printer1]

 The Windows box is already speaking to the LPD on the Lexmark box,
 sending a completely processed PCL printjob with PJL headers (which is
 why I don't see a need for IFHP). I would like to plug the Linux box
 right inbetween the two, and just use LPR, so there's no need for SAMBA
 and IFHP, from my understanding. (I would like to keep complexity as low
 as possible -- of course, if you tell me using SAMBA and IFHP is the way
 to go, then I'll listen to your expert advice).

  PRINTCAP:
  .common:sd=/var/spool/lpd/%P:filter=/usr/local/libexec/ifhp 
  lexbox1-printer1-tray1:tc=.common:lp=printer1
:ifhp=model=hp4,outbin=tray1
  lexbox1-printer1-tray2:tc=.common:lp=printer1
:ifhp=model=hp4,outbin=tray2
  lexbox1-printer1-tray3:tc=.common:lp=printer1
:ifhp=model=hp4,outbin=tray3
 [snip]

 This is exactly something I was trying to avoid.
 I was looking for a fully variable-based printcap, so I don't have to
 edit it whenever there's a change on the Windows side (New IP for
 existing box, new box, whatever...). Is this possible?


OK.

The problem is that you want to do two orthogonal things:

  - redirect the job to a printer according to printer name
  - modify the job according to printer name

At the current time,  I do not have hooks in LPRng to do
both at once.  You can redirect the job,  set options for
ifhp,  or process the job,  but not all at once in one
process.


You can do this,  but you will need to use the next/current LPRng
release.  In this release,  the 'incoming_control_filter' now allows
you to specify a new destination.   I will document this and
publish it on the mailing list.

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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: SLOW spooling of Word file containing 225 pgs of scann ed docs

2004-03-15 Thread Patrick Powell
 From [EMAIL PROTECTED] Mon Mar 15 16:11:39 2004
 Date: Mon, 15 Mar 2004 18:30:33 -0500
 From: Van Sickler, Jim [EMAIL PROTECTED]
 Subject: RE: LPRng: SLOW spooling of Word file containing 225 pgs of scanned
  docs
 To: '[EMAIL PROTECTED]' [EMAIL PROTECTED]


...

 The Lanier is a Ricoh Aficio 3800CMF
 rebranded.  It's internal print firmware
 is fragile and poorly implemented.
 Printing PS3 directly to any of
 the various embedded print servers
 corrupts the queue listing, and eventually
 the printer won't accept any new jobs.
 Warm booting the printer 3-4 times a day
 gets to be annoying real fast.  I've had
 to reformat the internal hard drive
 a couple of times in order to clean out
 all of the gremlins.

 AFAIK, I'm running the most recent
 firmware...

 Jim

Ummm... given the large number of Good/Nice/Solid printers,
have you considered donating this to an enemy?

Patrick (An enemy is a friend that has to use this printer) Powell

-
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: Max jobs per queue

2004-03-12 Thread Patrick Powell
On Fri, Mar 12, 2004 at 09:23:37AM -0600, Russell Adams wrote:
 Historically, I've noticed that a queue can't hold more than 999
 jobs. Does this still hold true for more recent versions?
 
 I've looked through lpd.conf and didn't see any parameters to allow
 longer queues...
 
 Is there a way to expand the queue length?
 
 Russell
 

In the /etc/lpd/lpd.conf file, set the longnumber flag.

# Purpose: use long job number (0 - 99) when a job is submitted
#   default longnumber@ (FLAG off)
longnumber

OR

longnumber=1

You can also do this on a per-queue basis in the /etc/printcap file:

lp:
  :longnumber
  :sd=/var/spool/lpd/%P
  :

-- 
Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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: lpd.perms problem

2004-03-12 Thread Patrick Powell
On Fri, Mar 12, 2004 at 02:21:24PM +0100, Longina Przybyszewska wrote:
 hi,
 can anyone tell me why the following setting in lpd.perms doesn't work?
 It is LPRng-3.8.21.
 The server controls 2 printers, for one of them I would like to allow
 other persons than root to remove jobs fra queue.
 My changes don't work (the rest  is default). WHat is wrong?
 
 
 # allow same user on originating host to remove a job
 ACCEPT SERVICE=M SAMEHOST SAMEUSER
 # allow root (and persons listed in /etc/lpd/ok)on server to remove jobs
 #   from printer d3
 ACCEPT SERVICE=M SERVER PRINTER=d3 REMOTEUSER=root,/etc/lpd/ok
 
 ACCEPT SERVICE=M SERVER REMOTEUSER=root
 REJECT SERVICE=M
 # all other operations allowed
 DEFAULT ACCEPT
 
 
 thanks in advance!
 Longina
 
 
 --
 Longina Przybyszewska, system programmer
 Dept. of Math.  Comp. Sci. - IMADA
 University of Southern Denmark, Odense
 Campusvej 55,DK-5230 Odense M, Denmark
 
 tel: +45 6550 2359 - http://www.imada.sdu.dk email: [EMAIL PROTECTED]
 --

When you say 'does not work' do you mean that users CAN remove jobs
or users CANNOT remove jobs.

Note:  I recommend using:

 # all other operations allowed
 DEFAULT REJECT

i.e. - deny any operation unless specifically allowed.

-- 
Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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: HF_NAME information missing

2004-03-12 Thread Patrick Powell
,
!   Errormsg( errno ) );
!   goto error;
!   }
!   if( Lpq_status_file_DYN ){ unlink(Lpq_status_file_DYN); }
!   discarding_large_job = 0;
}
}
  
   error:

-- 
Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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: Internet Printing Protocol support any time soon?

2004-03-12 Thread Patrick Powell
On Wed, Jan 28, 2004 at 12:03:31PM -0500, Michael C. Newell wrote:
 We have an application the requries IPP support.  Currently we're using
 LPRng V3.7.  I've seen a number of queries about IPP support and it appears
 IPP will be in V4.0; any idea as to when this will be coming out?  Are the
 interim solutions available?
 
 Thanks,
 
 Mike
 
 

I worked on it over Christmas quite a bit,  and some time in January.

I need about 6 weeks of attention to finish it off and do testing.

-- 
Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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: Disable remote lpq

2004-03-12 Thread Patrick Powell
On Wed, Jan 28, 2004 at 10:02:50AM -0800, Adam Crews wrote:
 Hello,
 
 I have looked over the docs, but don't quite see what I am after.  Is
 there a way to disable the querying of the remote machine when using lpq?
 
 I have a few queues set up to autohold any jobs that come into them, then
 when my print floor is ready, I release the jobs to the printer.  The
 problem is that I have several queues that all point to the same remote lp
 server, and when you do an lpq on any of the local queues, you get the
 local queue listing, as well as anything on the remote printer.
 
 Here is a snippet from my printcap:
 
 .common:
 :sd=/var/spool/lpd/%P
 :ah
 :longnumber
 :save_when_done
 :ifhp=model=default,status@
 
 emea-only:
 :tc=.common
 :rm=xxx.xxx.xxx.xxx
 :rp=lp
 
 us-only:
 :tc=.common
 :rm=xxx.xxx.xxx.xxx
 :rp=lp
 
 Basically, I just don't care what is in the queue on the remote end, so
 I'd like to disable all querying of the remote end.
 
 Since the jobs are not filtered, the ifhp line above doesn't seem to have
 any effect.
 
 Thanks.
 -Adam
 
 

Use the 'remote_support' option:
 .common:
 :sd=/var/spool/lpd/%P
 :ah
 :longnumber
 :save_when_done
 :ifhp=model=default,status@
 
 emea-only:
 :tc=.common
 :rm=xxx.xxx.xxx.xxx
 :rp=lp
:remote_support=R
 
 us-only:
 :tc=.common
 :rm=xxx.xxx.xxx.xxx
 :rp=lp
:remote_support=R

-- 
Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

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


LPRng: Re: LPRng install bug

2004-03-12 Thread Patrick Powell
On Wed, Jan 28, 2004 at 06:29:20PM -0600, Jeff Bastian wrote:
 Patrick,
 
 The --with-initpath flag in LPRng-3.8.24 gets ignored.  I looked at the 
 configure script and found it's supposed to be --with-init_path, so it 
 looks like the --help output is wrong.
 
 However, once I got the configure flag right, it was still ignored 
 because the postinstall.linux.sh script does
   init=${DESTDIR}/etc/rc.d/init.d/lpd
 but, for some reason, ${DESTDIR} is left undefined, but ${INIT} is 
 defined to the option I specified for --with-init_path.  So, I modified 
 the post install script to be
   init=${INIT}
 and then it installed correctly.
 
 Hopefully this helps!
 
 -
 Jeff Bastian
 [EMAIL PROTECTED]
 Unix System Admin
 Texas Instruments
 -

Version LPRng-3.8.27 - Wed Feb 25 06:19:08 PST 2004
  Fixed:  'Missing HOLD_FILE' logic error fixed in lpd_rcvjob.c
   (Noted by: Mark Tamisiea [EMAIL PROTECTED])

  Fixed: configure with-initpath
--with-initpath=PATH now works correctly
   (Reported by: Jeff Bastian [EMAIL PROTECTED])


-- 
Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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: Fixing a Windows bug with LPRng?

2004-03-12 Thread Patrick Powell
/bin/perl

my $printer = $ARGV{'PRINTER'};
my $tray = ;
$tray = ;
$tray = outbin=upper if( $printer =~ /tray1/ );
$tray = outbin=middle if( $printer =~ /tray2/ );
$tray = outbin=lower if( $printer =~ /tray3/ );
while(  ){
chomp;
if( /^Z/ ){
$_ .= ,$tray;
$tray = ;
}
print $_ . \n;
}
if( $tray ){
print -Z$tray\n;
}
exit 0;

If you do not want to use IFHP,  then modification of the 'fixup' filter is left
as an execise for the student :-)

Patrick Powell

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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: SLOW spooling of Word file containing 225 pgs of scanned docs

2004-03-12 Thread Patrick Powell
 From [EMAIL PROTECTED] Mon Mar  8 08:23:02 2004
 Date: Mon, 08 Mar 2004 10:44:40 -0500
 From: Van Sickler, Jim [EMAIL PROTECTED]
 Subject: LPRng: SLOW spooling of Word file containing 225 pgs of scanned docs
 To: LPRng-l (E-mail) [EMAIL PROTECTED]

 I ran into something on Friday that I can't
 sort out.

 I have the following setup:

 Lanier 2138 RPCS Color Laser
 (same as Ricoh 3800CMF)

 Win2k SP4
 RPCS driver v 2.67 (most current)
 Print via Standard TCP/IP Port

 OpenBSD 3.2/LPRng 3.8.21
 OpenBSD 3.4/LPRng 3.8.26

 Printcap entries (tried Friday)
 for the 2138, which seem to work
 fine for all other print jobs:
 :[EMAIL PROTECTED]:lpd_bounce
 :rm=xxx.xxx.xx.xx:rp=lp
 :lp=xxx.xxx.xx.xx%9100
 :lp=xxx.xxx.xx.xx%9100:lpd_bounce=true

You should use:
 lp:lp=xxx.xxx.xx.xx%9100

and NOT have any rm or rp entries.  This will force LPRng
to use the (faster? better?) Appsocket facility on port 9100.

Patrick


 If I use the above settings, printing
 the Word 2000 file through either
 OpenBSD box takes FOREVER to spool
 the temp file;  I can ls the
 /var/spool/lpd/2138 directory
 and watch the file dribble in.
 I tried a 40-page chunk, which
 resulted in a 56MB job, with NO
 improvement in speed.  It never
 got to the point where the job
 actually started to print.  It was
 taking so long, I knew something
 was amiss and killed the job.


 I ended up setting up a Standard
 TCP/IP port directly to the Lanier,
 to see if it behaved similarly.

 NOT!!!

 The job started spitting out as soon as
 I clicked on the Ok button in the
 Word print dialogue.  It finished printing
 the 40 pages almost before I got to the
 printer.

 My lpd.conf is all defaults on both
 OpenBSD boxes.  All other print jobs
 seem to print at full speed.

 What gives?

 Jim

 -
 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: Still Problem with HP LaserJet 5N

2004-03-12 Thread Patrick Powell
Can you please post your printcap file and the LPRng/ifhp versions you
are using?  And perhaps the OS?

Thanks!
Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

 From [EMAIL PROTECTED] Wed Mar 10 00:20:30 2004
 Date: Wed, 10 Mar 2004 15:46:11 +0800
 From: Uwe Dippel [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: Still Problem with HP LaserJet 5N

 This remains bugging me. With the 'old' lprngtool it had been running 
 perfectly for years.
 Now it wouldn't, whatever filter I use.
 The ASCII comes up okay; though by default

 line1
line2

 I could change that with lpf, but then Postscript doesn't come out.
 So I tried

 Generic Postscript
 PCL only
 default (HP4M ...)
 LaserJet 4 Family (pcl_gs)
 LaserJet 5 Family (hp5)

 Whatever I do, the output is a rim of paper printed full PS script; with 
 the first line
 %!PS-Adobe-2.0
 %%Titel: testpage-a4.fig

 ... and so forth.

 Maybe I'm doing something very stupid, but before it worked and 
 currently it also works flawlessly to a Lexmark 322.
 Both are 9100-printers.
 Sorry to add that the LaserJet 5N works flawlessly from a 
 Windows-client, as well.

-
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: SLOW spooling of Word file containing 225 pgs of scann ed docs

2004-03-12 Thread Patrick Powell
 No filtering is being done, and the Print Processor is
 set to raw on the Win2k box.

  If these hints do not help we need to find out whether the
  problem is related to transfering the print job from the PC
  to the server or to sending from server to printer.

 It's from the Win2k PC to the server;  it never
 finished spooling, so it never went to the printer.


Are you trying to say that the problem is transferring
from the Win2K system to the LPRng server?

Patrick

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


LPRng: Re: Help with LPRng

2004-03-11 Thread Patrick Powell
 From [EMAIL PROTECTED] Fri Sep 27 09:15:16 2002
 From: Rodrigo Bindes \(E-mail\) [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Help with LPRng
 Date: Fri, 27 Sep 2002 11:12:26 -0500

 Hi!

 I saw your LPRng Web Page and liked it very much...

 I got a little problem here and you might be able to help me.

 One of my applications runs under Linux Red Hat 6.2 and it's accessed by a
 few users using telnet (tera term). This Linux box has only one printer
 connected to the Paralel interface and it's the only printer that we have
 for the whole building to print reports out of this application on Linux. We
 also have several networked printers (using TCP/IP) in our building and I
 was wondering how I could better use these printers.

 What I need is something like this:

 If a user using IP 192.168.1.X tries to print, use printer 192.168.1.111
 If a user using IP 192.168.2.X tries to print, use printer 192.168.2.222

 It can be also like this:

 Group X, prints on printer X (IP 192.168.1.111)
 Group Y, prints on printer Y (IP 192.168.2.222)

 The application won't let me do this...

 Do you have any solution for this. I am sure there is a way to do it, I just
 don't know how...

 I hope you can help me. Thanks in advance,

 Rodrigo Bindes

 ---
 Outgoing mail is certified Virus Free.
 Checked by AVG anti-virus system (http://www.grisoft.com).
 Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002


You need to determine the queue to use based on the originating
host address.

.common:lp=/var/spool/lpd:
lp:tc=.common:chooser=/usr/lib/libexec/chooser:
  :sv=lp1,lp2

lp1:tc=.common:[EMAIL PROTECTED]
lp2:tc=.common:[EMAIL PROTECTED]

Chooser:

 Here is a simple test version you can use:

#!/bin/sh
echo CHOOSER $0 $@ 12
echo PRINTERS $PRINTERS 12
sed -e 's/,.*//'
exit 0

The output looks like:

Printer: [EMAIL PROTECTED] (subservers t5, t6)
 Queue: no printable jobs in queue
 Server: no server active
 Status: CHOOSER: CHOOSER /var/tmp/LPD/chooser [EMAIL PROTECTED] -CA 
-D2004-03-11-16:38:48.596 -Hh110.private -J/tmp/hi -Lpapowell -Pt4 -Qt4 -aacct -b3 
-d/var/tmp/LPD/t4 -hh110.private -j358 -kcfA358h110.private -l66 -npapowell -pt4 
-rlocalhost -sstatus -t2004-03-11-16:39:20.062 -w80 -x0 -y0 acct at 16:39:20.069
 Status: CHOOSER: PRINTERS t5,t6 at 16:39:20.069
 Status: Filter_file: pgm '/var/tmp/LPD/chooser' exited with status 'JSUCC' at 
16:39:20.072
 Status: CHOOSER selected 't5' at 16:39:20.072
 Status: moving '[EMAIL PROTECTED]' to subserver 't5' at 16:39:20.075
 Status: [EMAIL PROTECTED]: job '[EMAIL PROTECTED]' printed at 16:39:20.143
 Status: job '[EMAIL PROTECTED]' saved at 16:39:20.146
 Status: transfer '[EMAIL PROTECTED]' to queue 't5' finished at 16:39:20.147
 Status: starting subserver 't5' at 16:39:20.147
 Status: waiting for server queue process to exit at 16:39:20.165
 Status: no more jobs to process in load balance queue at 16:39:20.221

Now you have to modify the chooser code to use the -H value for selection:

#!/bin/sh
while [ $1 ] ; do
case $1 in
-H* ) host=$1;;
esac;
done
host=`echo $host | sed s/-.//`;
case $host in
192.1.1.1 ) pr=lp1;;
* ) pr=lp2;;
esac
echo $pr
exit 0

You can even use:

.common:lp=/var/spool/lpd:
lp:tc=.common:chooser=/usr/lib/libexec/chooser:
#!/bin/sh
while [ $1 ] ; do
case $1 in
-H* ) host=$1;;
esac;
done
host=`echo $host | sed s/-.//`;
case $host in
192.1.1.1 ) [EMAIL PROTECTED];;
192.1.1.2 ) [EMAIL PROTECTED];;
esac
echo $pr
exit 0

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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: Print accounting and filename logging

2004-03-11 Thread Patrick Powell
 From [EMAIL PROTECTED] Wed Oct  2 14:43:10 2002
 Date: Wed, 2 Oct 2002 15:31:49 -0500 (CDT)
 From: Robert Giles [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: Print accounting and filename logging

 Howdy folks - I've written a little Perl script to take pertinent
 information from a print job and store it in a MySQL database for later
 review.  Problem is I can't seem to get the $N (filename) variable to be
 passed to my program, ie:

 :as=|/usr/libexec/filters/acct.pl $H $P $n $b $N

 ...doesn't return anything in the $N variable.  Does $N only work for
 programs used in the :filter line of the /etc/printcap file?

 Thanks in advance for any suggestions!

 ---
 Robert Giles[EMAIL PROTECTED]
 SPL/ARL:UT 512/835-3077


The accounting script is  invoked for a job.  The $N variable is the
N entry from the printcap file corresponding to the file name.
Since there may be multiple files in a job,  this value is not provided to the
accounting filter.

ON the other hand,  you can GET the names of files value by looking at the CONTROL
environment variable,  which has the control file image.
 
Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

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


LPRng: New (bug fix) version of LPRng posted - LPRng-3.8.26

2004-02-25 Thread Patrick Powell
Umm.. ahhh... I left the IPP test code stubs in the previously posted
version.  The new version does not have them.  Also the very clever
chooser script by Henrik Edlund.

Version LPRng-3.8.26 - Tue Feb 3 16:58:00 PST 2004

  ADDITION to UTILS:
VeryFlexibleChooser.pl script uses SNMP to get printer
status and selects printer.
  (Contributed by: Henrik Edlund [EMAIL PROTECTED])

  Fixed:
   --disable-werror configuration option not set correctly.
  (Noticed and patched by:  Gabriele Balducci [EMAIL PROTECTED])

   IPP listening enabled by default.  Should not be enabled by default.
   (ipp_listen_port=0)


-
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: HP8150 crashes (79.00FE) - reproducable!

2004-02-25 Thread Patrick Powell
 From [EMAIL PROTECTED] Tue Feb 10 15:24:53 2004
 Date: Tue, 10 Feb 2004 17:37:42 -0500 (EST)
 From: Matt Forrest [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: HP8150 crashes (79.00FE) - reproducable!

   This message is in MIME format.  The first part should be readable text,
   while the remaining parts are likely unreadable without MIME-aware tools.
   Send mail to [EMAIL PROTECTED] for more info.

 ---559023410-684387517-1076452662=:25713
 Content-Type: TEXT/PLAIN; charset=US-ASCII


 Well, after several years I've finally been able to consistently reproduce
 the 79.00FE crashes on our 8150.  I'm already dealing with HP to try and
 get them to admit it's a problem with the printer!

 Can anyone else who has an 8150 try this on their machine?
 I'd really like to know if this crashes other 8150s.

 The file contains only PJL stuff - it doesn't actually print anything! If
 you print the file without any further processing and then have another
 status message (ie Tray 3 Open, Toner Low) the printer will crash. You can
 even use the lpd or ftp daemons on the printer.  The results are the same.

 What I've done in testing is open a paper tray a couple of seconds after
 the processing light stops blinking or just leave a paper tray open!

 Any idea why this particular combination of PJL fsck's the printer?



 mATT

 *

A neurotic worries about going crazy, but never will
A psychotic IS crazy, but doesn't worry about it!

   ... Don't worry, be happy!!!  :}

 *

I am truly in awe of Matts determined and persistent efforts to
find a way to evoke this problem.

Patrick (
   The sign of a true master is in the attention to details - Zen
   Screw the details!  Ship that sucker - Management
) Powell


-
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 printing and AIX

2004-02-25 Thread Patrick Powell
 From [EMAIL PROTECTED] Thu Feb 12 12:58:08 2004
 Date: Thu, 12 Feb 2004 13:53:42 -0600
 From: Russell Adams [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: LPRng printing and AIX

 I'm currently rebuilding our print infrastructure to use LPRng. I'll
 have OpenVMS and AIX client systems forwarding print to a pair of
 Redhat boxen running LPRng. We've used LPRng for many years on Intel
 boxen with great success, and are even purchasing commercial support
 (Thanks Patrick!).

 Due to issues I'm having on AIX with remote queues printing to OpenVMS
 via lpr, I'm contemplating replacing AIX's proprietary queuing system
 with LPRng. 

 What degree of success have others had in using LPRng on AIX?

 I'm disappointed in the AIX printing subsystem, and like the idea of
 using LPRng cross-platform wherever possible. However, this may not be
 a popular decision with management, and I'm looking for supporting
 evidence to justify the decision. This would also be the first time we
 would run LPRng on a non-(Linux/Intel) machine.

 Currently, half my queues are in a down state at regular intervals on
 AIX even though the remote queues are always available, resulting in
 the creation of a cron job that runs every 15 minutes that forces
 queue restarts on all queues.

 Any input is appreciated!

 Russell Adams
 Systems Administrator
 Kelsey-Seybold Clinics
 Houston, TX


I installed and ran LPRng on several AIX systems.  Well, actually,
somebody else did the work and reported that it worked 'out of the box'
after they solved some compiler issues and library issues.

The recipe seemed to be:

a) install GNU make
b) install GCC (or find out how to get 'true ANSI' to work on the
   default compiler).
c) configure
d) read a couple of error messages about 'missing stuff', look at the
   include files,  find the right #ifdefs to enable, then run configure again with:
   env 'CFLAGS=-D... -I...' configure
   so that the right parts of various include files are picked up.
e) You might want to read the STANDARD_install script, modify it, and
   use this to do the configure,  as it puts the executables in /usr/bin
   rather than /usr/local/bin
f) Figure out where the library to use to get the resolver (DNS) support to be
   linked in correctly.  You may need to add a -L... option:
   env 'CFLAGS=-D... -I...' 'LDFLAGS=-L...' configure

Patrick Powell

-
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: Xerox Phaser 3450 DN

2004-02-25 Thread Patrick Powell
 From [EMAIL PROTECTED] Thu Feb 12 14:26:07 2004
 From: Sam Warren [EMAIL PROTECTED]
 To: LPRng [EMAIL PROTECTED]
 Subject: LPRng: Xerox Phaser 3450 DN
 Date: Thu, 12 Feb 2004 15:39:26 -0600

 I have a Xerox Phaser 3450 DN I just added to the network. It has a duplex
 unit (D). I am having a strange problem that has stumped me. Maybe someone
 has an idea. I can print to it from the server using the lpr command. I can
 print to it from clients using Samba. However, I cannot print to it using
 TCP/IP port configured to send lpr from Windows 2000 or XP. The print job
 shows up as error. I am using the postscript drivers from Xerox. I have
 LPRng 3.8.22-2. I have tried setting the printcap to print to the printers
 LPD port and port 9100. Neither works. I have nearly 150 queues on this
 server and they all work except this one. Does anyone have any ideas on
 this? Thanks!

 Sam Warren, Jr. 
 Computer Technician
 Winnebago Industries
 641-585-3535 ext. 7785


Probably somebody else will answer this,  but this printer may not
have the TCP/IP printing enabled.  You need to enable Appsocket
printing on the printer.  Use the Web Interface and go to the Configuration
settings.

Patrick

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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: Stalled Printer

2004-02-25 Thread Patrick Powell
 From [EMAIL PROTECTED] Thu Feb 12 14:16:33 2004
 From: Sam Warren [EMAIL PROTECTED]
 To: LPRng [EMAIL PROTECTED]
 Subject: LPRng: Stalled Printer
 Date: Thu, 12 Feb 2004 15:38:02 -0600

 This is really becoming a problem. I hope someone can help. I have somewhere
 around 120 printers on my server. When ever one of them runs out of paper,
 which is a frequent occurrence with that many printers, it will cause the
 print queue to go into a stalled state. The first print job in the queue
 shows up as stalled and when paper is added to the printer and it is on line
 again, the queue does not start up again. Does anyone know how to take care
 of this stalled condition without me going into the server and restarting
 it? Every time a printer runs out of paper, it shouldn't require a manual
 intervention at the print server. Thanks!

 Sam Warren, Jr. 
 Computer Technician
 Winnebago Industries
 641-585-3535 ext. 7785


This is very odd.  I just tried this with an HP Laserjet 5, run out of paper,
put paper in,  and it started up.  Also with a HP 2200 and a Xerox 8500.

Very strange indeed.

Patrick Powell

-
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: what is OffendingCommand ?

2004-02-25 Thread Patrick Powell
 From [EMAIL PROTECTED] Thu Feb 12 16:49:05 2004
 Date: Thu, 12 Feb 2004 18:57:12 -0500 (EST)
 From: James.Q.L [EMAIL PROTECTED]
 Subject: LPRng: what is OffendingCommand  ?
 To: [EMAIL PROTECTED]

 print job halted during printting. following is the log. 

 OffendingCommand type of error is the only one cause problem on the print server. It 
 doesn't
 happen too often but i want to know how to avoid it. 

  Filter_status: Put_inbuf_len: buffer '%%[ Error: interrupt; OffendingCommand: file 
 ]%%^M
  Filter_status: %%[ Flushing: rest of job (to end-of-file) will be ignored ]%%^M
  Filter_status: ' at 17:36:30.787
  Filter_status: Get_inbuf_str: found '%%[ Error: interrupt; OffendingCommand: file 
 ]%%' at
 17:36:30.787
  Filter_status: Pr_status: start str '%%[ Error: interrupt; OffendingCommand: file 
 ]%%', pjlvar
 'NULL', infovar 0 at 17:36:30.787
  Filter_status: Pr_status: PostScript info ' Error: interrupt; OffendingCommand: 
 file ' at
 17:36:30.788

This is an error message from the PostScript interpreter on the printer.  The
'offending command' is an 'open file' command,  which may indicate an attempt
by a hacker to send the dreaded 'open the /etc/passwd file and print it, thank
you!' PostScript hack that I have noted several years ago.  Useful when people are
using GhostScript and do not use the -sPARANOIDSAFER flag.

Patrick (The truth will set you free, but lies will get you elected) Powell

Note:  I was amazed when 'autosign' came up with this one.  Must be from the
last election 4 years ago.
   autosign goes through about 2000 sign lines that I have used over the years
   and pops up one for me to use.


-
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: Conflict error on upgrade

2004-02-25 Thread Patrick Powell
 From [EMAIL PROTECTED] Fri Feb 13 19:24:16 2004
 Date: Fri, 13 Feb 2004 18:47:35 -0800
 From: Anthony Ewell [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: Conflict error on upgrade

 Hi All,

 I am trying to upgrade my Red Hat 9 server.  This is my current
 configuration:

ghostscript-7.05.5-0.i386.rpm  LPRng-3.8.19-3.1.i386.rpm
gimp-print-4.2.5-2.i386.rpmLPRngTool-1.3.2-1.i386.rpm
ifhp-3.5.6-1.i386.rpm

 When I try to upgrade, I get the following error:

rpm -Uvh LPRng-3.8.25-1.i386.rpm
Preparing...   [100%]
 file /etc/printcap from install of LPRng-3.8.25-1
 conflicts with file from package setup-2.5.25-1

 Any ideas as to what this is about?

 Many thanks,
 --Tony
 [EMAIL PROTECTED]

The 'setup' package/rpm has a file called /etc/printcap.  You need to use the
force  option to rpm to overwrite this file.

  rpm --force ...

Patrick (Force?  We never use force.  We simply hit it harder) Powell

-
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 with HP4200

2004-02-25 Thread Patrick Powell
 From [EMAIL PROTECTED] Mon Feb 16 06:36:05 2004
 From: Steve Kersley [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Date: Mon, 16 Feb 2004 13:52:56 -
 Subject: LPRng: Problems with HP4200

 Hi there,

 I've bought a Laserjet 4200 to replace the current printer, but am having 
 huge problems getting it to work. The problem actually appears to be with 
 ifhp rather than lprng, so if I'm in the wrong place, please tell me to get 
 lost ;-)

 If I use an ifhp model=hp5 setting, it prints fine but ifhp's accounting 
 doesn't work since the 4200 'completes' the job before it really has, so 
 the page counts don't reflect what they should.

 If I change the ifhp settings to use model=hp4200, it doesn't print.  
 Either via samba (as the printer is intended to be used), or via lpr from 
 the command line.  The job just stalls in the queue.  Lprng spawns a worker 
 process, ifhp has been called and is running.  Strace shows it's sitting in 
 a loop basically calling stat() on a file called status, which doesn't 
 exist (should it?) and gettimeofday().

 Anyone got any hints on things to try, or ways to fix it?

 Oh, using ifhp 3.5.15 on a gentoo linux box.

 Cheers,

 Steve.

Use snmp status monitoring and pagecount.

[ hp4200 ]
tc=hp5
status=snmp
pagecount=snmp
waitend=snmp

Patrick Powell

-
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: gnome-print doesn't like lprng 3.8.25 IPP

2004-02-25 Thread Patrick Powell
On Sun, Feb 08, 2004 at 12:07:39PM +1100, Craig Small wrote:
Fixed!

 Hello Patrick,
   Something somewhere doesn't like your version of IPP.  People are
 getting various gnome programs hanging due to gnome-print talking to
 lprng via IPP who then disagree about something.
 
 References:
   http://bugzilla.gnome.org/show_bug.cgi?id=133751
   http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=231587
 
 Feb  7 21:01:40 christian SERVER[29903]: Dispatch_input: bad request line
 'POST / HTTP/1.1' from 127.0.0.1 port 37816
 
 What we have here, is a failure to communicate
 
  - Craig
 -- 
 Craig Small  GnuPG:1C1B D893 1418 2AF4 45EE  95CB C76C E5AC 12CA DFA5
 Eye-Net Consulting http://www.enc.com.au/   MIEE Debian developer
 csmall at : enc.com.au  ieee.org   debian.org 
 

-- 
Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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: bounce-queues ???

2004-02-12 Thread Patrick Powell
 From [EMAIL PROTECTED] Fri Nov 28 07:22:42 2003
 Date: Fri, 28 Nov 2003 15:43:34 +0100 (NFT)
 From: Margrit Lottmann [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: bounce-queues ???

 ifhp-3.5.13 doesn't resolve our accounting problems
 with our HP9000 printer.

 We will further use current ifhp-3.5.10 version,
 which is patched with the pjl_waitend_byjobname.

 The problems with commas in jobnames which avoid
 that jobs can normally end I want to resolve
 with a bounce queue:

 calling a control file filter, that changes jobnames
 with commas in the string to a new name without that
 signs.

 With a former LPRng version I had already used such a
 queue to resolve our problems with smb


 But in the current version bq-Option isn't allowed...

 pr1
  :[EMAIL PROTECTED]
  :[EMAIL PROTECTED]
  :control_filter=$- /usr/libexec/filters/cf.filter.awk
  :sd=/var/spool/lpd/pr1

 target_queue:
  ...

 How can I specify a bounce queue with other options
 (LPRng-3.8.19)

 pr1:force_localhost
  :[EMAIL PROTECTED]
  :control_filter=$- /usr/libexec/filters/cf.filter.awk
  :sd=/var/spool/lpd/%P

OR
 pr1:client:[EMAIL PROTECTED]
 pr1:server
  :[EMAIL PROTECTED]
  :control_filter=$- /usr/libexec/filters/cf.filter.awk
  :sd=/var/spool/lpd/%P




 --
 Mit freundlichen Gruessen  
 M.Lottmann

  Otto - von - Guericke  Universitaet  __  __    _ _   __
Magdeburg / / / /  / __ \__  // | / /
     / / / /  / /_/ / / / __ /  |/ /
Margrit Lottmann/ /_/ /  / _, _/ / /___// /|  /
Universitaetsrechenzentrum  \/  /_/ |_| // /_/ |_/
  Netze  Kommunikation


-
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: Chooser script using SNMP

2004-02-12 Thread Patrick Powell
This is now in the LPRng UTILS directory as the 'VeryFlexibleChooser.pl'
script.

Version LPRng-3.8.26 - Tue Feb 3 16:58:00 PST 2004
  ADDITION to UTILS:
VeryFlexibleChooser.pl script uses SNMP to get printer
status and selects printer.
  (Contributed by: Henrik Edlund [EMAIL PROTECTED])


 From [EMAIL PROTECTED] Thu Nov 27 10:16:08 2003
 Date: Thu, 27 Nov 2003 17:54:01 +0100 (CET)
 From: Henrik Edlund [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: Chooser script using SNMP

 I hereby release the following Chooser script into the public domain on 27
 November 2003.

 The following Chooser script uses SNMP to check printer status, and then
 uses the status information to in a smart way select the _most_ available
 printer. A printer without toner/paper warnings is always chosen over one
 with toner/paper warnings. Within each of those groups; an idle printer is
 chosen first, then a standby printer (after idle because it takes time for
 it to warm up), then a printing printer, and last a warming up printer
 (after printing as it has most likely received a print job and given the
 guess that each print job is of equal size, a printing printer will be
 done before a printer in warm up).

 This script is known to fully work with the Xerox Phaser 4400 and the
 Xerox DocuPrint N32. Your mileage may vary with printers from other
 manufacturers.

 Yours,
   Henrik

 PS. There are spies from Xerox on this list; so *wink* *wink* to the
 fellas over at Xerox.

 --snip--

 #!/usr/local/bin/perl

 # Released into the Public Domain by Henrik Edlund [EMAIL PROTECTED]
 # 27 November 2003

 # This program is distributed in the hope that it will be useful, but
 # WITHOUT ANY WARRANTY; without even the implied warranty of
 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

 use strict;
 use warnings;

 use Net::SNMP;

 my $printers;
 my $exit_job_fail = 1;
 my $printer;
 my $priority;
 my $session;
 my $error;
 my $result;
 my $snmp_hr_device_status = '1.3.6.1.2.1.25.3.2.1.5.1';
 my $snmp_hr_printer_status = '1.3.6.1.2.1.25.3.5.1.1.1';
 my @printers = ([], [], [], [], [], [], [], []);
 my $exit_job_success = 0;

 # get printers from STDIN
 $printers = STDIN;
 if (not(defined($printers))) {
 # no printers given, try again in a while
 exit($exit_job_fail);
 }
 chomp($printers);

 foreach $printer (split(/,/, $printers)) {
 $priority = -1;
 # talk SNMP to printer
 ($session, $error) = Net::SNMP-session(-hostname = $printer);
 if (defined($session)) {
   # fetch hrDeviceStatus and hrPrinterStatus
   $result = $session-get_request(-varbindlist =
   [$snmp_hr_device_status,
$snmp_hr_printer_status]);
   # check status of printer and assign priority
   if (defined($result)) {
   if ($result-{$snmp_hr_device_status} == 2) { # running
   if ($result-{$snmp_hr_printer_status} == 3) { # idle
   $priority = 0;
   }
   elsif ($result-{$snmp_hr_printer_status} == 1) { # standby
   $priority = 1;
   }
   elsif ($result-{$snmp_hr_printer_status} == 4) { # printing
   $priority = 2;
   }
   elsif ($result-{$snmp_hr_printer_status} == 5) { # warmup
   $priority = 3;
   }
   }
   elsif ($result-{$snmp_hr_device_status} == 3) { # warning
   if ($result-{$snmp_hr_printer_status} == 3) { # idle
   $priority = 4;
   }
   elsif ($result-{$snmp_hr_printer_status} == 1) {  # standby
   $priority = 5;
   }
   elsif ($result-{$snmp_hr_printer_status} == 4) { # printing
   $priority = 6;
   }
   elsif ($result-{$snmp_hr_printer_status} == 5) { # warmup
   $priority = 7;
   }
   }
   if ($priority != -1) {
   push(@{$printers[$priority]}, $printer);
   }
   }
   # close the udp transport layer to printer
   $session-close();
 }
 }

 # of those available with highest priority; pick a random one
 foreach $priority (@printers) {
 $printers = scalar(@$priority);
 if ($printers  0) {
   # success, found available printer
   print $priority-[rand($printers)]\n;
   exit($exit_job_success);
 }
 }

 # no printers available right now, try again in a while
 exit($exit_job_fail);

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

Re: LPRng: ifhp-3.5.x: Separation of Job and displayname

2004-02-12 Thread Patrick Powell
Thanks!

Version ifhp-3.5.17 - Tue Feb 3 17:25:42 PST 2004

  GCC extensions are unloved by some ANSI compilers.
(Fix and Patches Courtesy: Jim Trocki [EMAIL PROTECTED])

  Patch for ifhp which separates generation of jobnames
  from generation of display names. I see no reason why
  displaynames shouldn't contain for example ':'
  (Handy for displaying times...)
   (Patch from: Hermann Lauer [EMAIL PROTECTED])


 From [EMAIL PROTECTED] Fri Nov 28 09:00:24 2003
 Date: Fri, 28 Nov 2003 17:08:10 +0100
 From: Hermann Lauer [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: ifhp-3.5.x: Separation of Job and displayname


 --vkogqOf2sHV7VnPd
 Content-Type: text/plain; charset=us-ascii
 Content-Disposition: inline

 Dear list members,

 attached is a patch against ifhp-3.5.11
 which separates generation of jobnames
 from generation of display names. I see no reason why
 displaynames shouldn't contain for example ':'
 (Handy for displaying times...)

 Furthermore Pjl_display_size is enforced already
 during generation of Job_ready_msg and End_ready_msg,
 so it is in one place. In the current code one
 usage misses the shortening, but with the patch
 applied that doesn't matter any more.

 If the patch is accepted, of course in all other
 places the shortening could thrown away.

 Any comments are welcome,

 greetings
Hermann

 -- 
 Netzwerkadministration/Zentrale Dienste, Interdiziplinaeres 
 Zentrum fuer wissenschaftliches Rechnen der Universitaet Heidelberg
 IWR; INF 368; 69120 Heidelberg; Tel: (06221)54-8236 Fax: -5224
 Email: [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.
-


Re: LPRng: landscape in a HP PSC 2110 all-in-one

2004-02-12 Thread Patrick Powell
 From [EMAIL PROTECTED] Sun Dec 21 13:31:02 2003
 From: George Bell [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: landscape in a HP PSC 2110 all-in-one
 Date: Sun, 21 Dec 2003 15:50:32 -0500

 Is there any way to print in landscape mode(in LInux) from this printer?

 My Setup:
 SuSE 8.0
 lprng 3.8.5 
 hpoj 0.90

 I tried   lpr -Zlandscape /etc/passwd  

 but it comes out in the usual portrait.

 Thanks,

 George

You need to add the IFHP filter to the system:

lp:if=/usr/ifhp
  :...

Now the ifhp filter will see the options and do the processing.

Patrick



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


LPRng: Re: Is LPRng dead?

2004-02-12 Thread Patrick Powell
 From [EMAIL PROTECTED] Mon Dec 22 20:14:59 2003
 Date: Tue, 23 Dec 2003 14:14:42 +1000
 From: Andrew Pollock [EMAIL PROTECTED]
 To: Patrick Powell [EMAIL PROTECTED]
 Subject: Re: Is LPRng dead?

 On Tue, Dec 23, 2003 at 10:08:17AM +1000, Andrew Pollock wrote:
  On Wed, Nov 12, 2003 at 05:02:12PM -0800, Patrick Powell wrote:
   
   Right.  Send me a bug list and I will fix it.  I have had no reports of
   any bugs lately.
   
   By the way,  I really appreciate the bug reports from the Debian users.
   If you have any,  send me the URLs and I will fix them ASAP.
  
  Hi,
  
  I've just forwarded you a bug report. Can you have a look and see if you
  think it's relevant. If you're not going to release a new version of
  lprngtool in the near future, I'll release another revision of the current
  version, which incorporates this patch.

 I'm not satisfied that I actually forwarded you that bug report. I don't
 believe the BTS actually onforwards a bug when you flag it as such.

 The bug URL in particular I'd like you to take a look at is
 http://bugs.debian.org/224261

 regards

 Andrew


Bug fix you did looks good.

Patrick

-
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: Problem with routing scripts

2004-02-12 Thread Patrick Powell
 From [EMAIL PROTECTED] Mon Dec 29 08:11:35 2003
 Date: Mon, 29 Dec 2003 08:56:57 -0600
 From: Jeremy Baumgartner [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: Problem with routing scripts

 I'm trying to use a router script to filter out bsize (ledger) print
 jobs and route them to a single printer instead of to the gang of
 printers.

 We want to have multiple input queues which get fed into a single
 routing queue.  Most jobs will be routed to cae-170-gang, which load
 balances to cae-1, cae-2, and cae-3.  If a job is bsize, it should be
 redirected to cae-3, bypassing the cae-170-gang.  Here's a pretty ASCII
 picture...

 cae-170-laser ---\ /-- cae-1
 cae-170-duplex - cae-170-router --- cae-170-gang --- cae-2
 cae-170-bsize ---/   \-\-- cae-3

 This seems fairly simple.  All the documentation and mailing list
 responses I've read say 'Just make a script...'  Unfortunately, that
 isn't working.

 Here is my printcap:
 -- snip --
 .common
   :sd=/var/spool/lpd/%P
   :queue_lock_file=/var/spool/lpd/%P/%P.lock
   :full_time
   :safe_chars=\\#?
   :ignore_requested_user_priority
   :break_classname_priority_link

 .router
   :lpd_bounce
   :lp=/dev/null

 cae-170-router
   :tc=.common
   :tc=.router
   :destinations=cae-170-gang,cae-3
   :router=/opt/printserver/CAE/router

Try adding a printcap entry for the cae-170-gang printer OR
use '[EMAIL PROTECTED]':


 cae-170-gang:
:tc=.common
:lp=/dev/null

OR:
 #!/bin/sh
 cat EOF
 dest [EMAIL PROTECTED]
 end

 -- snip --

 The router is a simple shell script (very simplified for testing):
 -- snip --
 #!/bin/sh
 cat EOF
 dest cae-170-gang
 end
 EOF
 -- snip --

 I have tried setting up the cae-170-router entry without any :tc=
 entries, but the result is the same.  The jobs enter the cae-170-router
 queue, but never get forwarded to their proper destination
 (cae-170-gang).

 As I said, I have looked at many different people's solutions, but none
 of them work for me.  Any assistance would be greatly appreciated.

 Thank you.

 --
 Jeremy Baumgartner - [EMAIL PROTECTED]
 CAE UNIX Systems Staff

 Debugging is twice as hard as writing the code in the first place. 
 Therefore, if you write the code as cleverly as possible, you are, by
 definition, not smart enough to debug it.
   - Brian W. Kernighan

-
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: Problem with ifhp-3.5.14 and Ghostscript 8.12?

2004-02-12 Thread Patrick Powell
 From [EMAIL PROTECTED] Wed Dec 31 12:14:53 2003
 Date: Wed, 31 Dec 2003 19:21:11 +
 To: [EMAIL PROTECTED]
 From: Eclectic Attitude [EMAIL PROTECTED]
 Subject: LPRng: Problem with ifhp-3.5.14 and Ghostscript 8.12?

 When I try to 'sh ./configure' ifhp-3.5.14 for compilation, with 
 Ghostscript 8.12 installed, I get an error

 Looking at the configure script, I then tried (what I think is) the 
 offending command manually:

 # gs -q -dBATCH -dNOPAUSE -dSAFER -dPARANOIDSAFER -sDEVICE=laserjet 
 -sOutputFile=|cat 3 ./gsPrint 3gs_out

 and that gave:

 Error: /invalidfont in findfont
 Operand stack:
 Courier   Font   Courier   155658   Courier   --nostringval--   Courier 
  ^^^

You do not have a Courier font file.  This is the first time
I have ever seen this one.  By convention/default,  the Courier
font should always be installed.  I suspect a corrupt GhostScript installation.

Patrick

-
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: ifhp-3.5.13

2004-02-10 Thread Patrick Powell
 From [EMAIL PROTECTED] Wed Nov 26 12:28:34 2003
 Date: Wed, 26 Nov 2003 11:06:48 -0800 (PST)
 From: Jim Trocki [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: LPRng: ifhp-3.5.13

 On Wed, 26 Nov 2003, Margrit Lottmann wrote:

  Has anybody an idea which gcc-Options I can use to avoid these errors ???

 it's a problem with the code. try this patch:


I have tried to use the '-pedantic' gcc flag to catch these, but much
to my amazement some of the include files have 'long long' in them.

I will add these and update ifhp.

Patrick (I need something between '-pedantic' and '-permissive'.
   What about '-perfect'?) Powell

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


LPRng: LPRng-3.8.25 Released

2004-02-04 Thread Patrick Powell
This release of LPRng has had a set of changes that were pending
incorporated into it.

The most obvious to administrators is the control file (cfX...) is
no longer present in the spool queue.  All of the control file
information is duplicated in the 'hold file' (hfX...).  This file
not only contains the control information, but also many other
option settings.  The control file contents are still generated and
passed to the incoming_control_filter and control_filter programs;
this functionality is still retained.  However,  the
incoming_control_filter program can now modify values in the 'hold
file'.  This allows the job priority, class, hold actions, etc.,
to be modified in a much easier manner.  You should still use the
exit codes to set immediate actions such as 'toss this job (JFAIL)',
etc.  The hold file contents are also passed to filters as the HF
environment variable value.

Another change  is  the discard_large_jobs option (default TRUE).
If an incoming job exceeds the maximum size limits then it is
accepted, but the contents are tossed to /dev/null as they are
received.  As a side effect, this action is recorded in the spool
queue status so you can check to see what happened to the job.

Finally,  the 'move' action (lpc move from_queue jobid new_queue)
has been heavily modified to perform an (almost) immedate 'move'
action by copying jobs from one spool queue to another, if they
are on the same host.  If they are not,  then the queue server
will transfer the job first before finishing any other actions.

This change fits in with the notion that a 'move' operation is
an administrators desperate effort to rescue a job that is stuck
behind another job.  You do not want to stop the printing of the
job currently in progess,  but you need to get the stuck job
printed.

Version LPRng-3.8.25 - Wed Jan 7 04:46:12 PST 2004

  MAJOR CHANGE in internals:
The legacy 'control file' has been removed from the spool
  queue as all of the information is duplicated in the hold
  file.  The various LPRng documents will be updated to reflect
  this.   Users who access the control file information external
  to LPRng should be warned that this is not a good idea due
  to file locking, etc.

  MAJOR CHANGE in 'move' operation:
The 'lpc move' is now 'nonblocking'.  If you request
  a job to be moved, the LPD server will start a process to
  (almost) immediately move the job.  Until this job is moved,
  no other job processing for the queue will be done.
  If the move is to a local queue on the same host, then the
  job will be copied via a file copy.  This action is identical
  to the action for sending a job to a 'load balance' queue,
  with the difference that the job is immediately marked as done
  rather than after the load balance queue has printed it.

  Note: if you enter a non-existent remote queue,  then the
  LPD subserver process trying to move the job will/may sit
  in an endless loop trying to move the job.

  Added: discard_large_jobs option
discard_large_jobs   - if this option is set, large jobs are
accepted and then discarded.

  Fixed: Priority and Class
For incoming jobs, the first letter of the C (class) field
in the control file is used to set the priority.
This action is modified by the:
  # ignore requested user priority
  ignore_requested_user_priority=0
  # do not set priority from class name
  break_classname_priority_link=0

If not present or the break_classname_priority_link,
the default priority value is used to set the priority.
(C=) and class (class=) values in the control file.

This deals with several lpd print clients that appear to
to assign random control file names and do not have a
C field in the control file.  Not to mention users
who try to manipulate queue priorities.

  Modified: incoming_control_filter action
This filter is applied to the incoming job control file.
and is used to modify the actions of the LPD server.
options.  The output can be in the form:
 Xoption  X (no option)
 Xoption
  ...
 blank line
 key=value
 key=value

   The Xoption is equivalent to X=option.  The key=value
   set of options is separated from the first by a blank line.
   If an option is not specified, it is not modified. The
   X (no option) or X=  (no option) form will remove the
   option from the control file.  It is dangerous to try to
   modify the A (identifier) option unless the user has intimate
   knowledge of the LPRng lpd server operation.

  Modified: filter environment variables
Filters are now invoked with the HF environment variable
set to the hold file contents.  This assists with the
incoming_control_filter and control_filter actions.

  Fixed:

The 'Remove_done_jobs' code now removes done and error jobs.
This makes the 'done_jobs' and 'done_jobs_max_age' actions
symmetrical.

  Documented:  added more details to the -D flags.

debug flag 

LPRng: ifhp-3.5.16 Released

2004-02-04 Thread Patrick Powell
This is really just a 'patch' release, fixing up a couple of minor
bugs.

Version ifhp-3.5.16 - Fri Jan 2 07:28:39 PST 2004

  The file conversion table for the 'DEFAULT'
  printer had a2ps producing PCL output.  This should have
  been PostScript output.

Version ifhp-3.5.15 - Wed Dec 17 16:48:50 PST 2003

  ifhp.conf file was missing default ps_converter entry.

  Typeo in command argument parsing fixed.


Version ifhp-3.5.14 - Tue Dec 2 15:43:20 PST 2003

   If a printcap entry is provided as the PRINTCAP_ENTRY environment
   variable, it is used to initialize the IFHP configuration options.
   It turns out that the only option in conflict is the IFHP 'ps'
   (postscript) option and the LPD ps (printer status file) option.
   Only the 'lp' and options longer than two characters are used.
   
   You still need to use 'ifhp=...' for specifying options page
   control or other options that are order sensitive.  You can put
   all of the other IFHP options that normally are in the ifhp.conf
   entry into the printcap file.

   The order of processing of options is:
a) printcap - config extracted
b) printcap - ifhp=... from printcap processed
b) command line -T options extracted
c) value of 'config' and 'model' found from current set of options
d) ifhp.conf read for model information
e) printcap (options  2 chars long), ifhp=... and -T options reprocessed

   The page and formatting options must still be specified in the
   :ifhp entry for proper processing.

OLD:
 lp:...:ifhp=model=hp5si,status@,letter
OLD:
 lp:...:model=hp5si:status@:ifhp=letter
   

   Added a fixup so that a PJL value of '1' matches 'on' and
   '0' matches 'off'.

   Discovered that the Fix_option_str value was being discarded
   rather than used when looking up options of the form: xx=\%s{key}
   Also, expansions of the form name = [ value_\%s{id} ] were not
   being handled correctly.

   Added the baseline code for using ifhp options found in PPD files.

   Added support for Sharp AR-507 and other printers

Version ifhp-3.5.13 - Mon Nov 17 08:40:15 PST 2003
  
   The ifhp-3.5.12 distributions that were put up on various web
   sites were incomplete.  Rather than try find and update them
   this version is simply a repackaging of the old version.


Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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 ifhp hp4300

2004-01-23 Thread Patrick Powell
 From [EMAIL PROTECTED] Tue Jan 20 17:12:54 2004
 Date: Tue, 20 Jan 2004 19:30:59 -0500 (EST)
 Subject: LPRng: lprng ifhp hp4300
 From: Chuming Chen [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]

 Hi, all,

 Recently, we bought a hp4300 Laser printer. I can directly print
 to it through port 9100. But I failed to use ifhp.

 I installed latest Lprng and ifhp (Lprng 3.8.24 and ifhp-3.1.15 on
 solaris 8). The followings are the error messages I got.

 ifhp 23:42:30.032 [25667] Write_read_timeout: Read_status_timeout
 returned -1
 ifhp 23:42:30.032 [25667] Write_read_timeout: read from printer
 failed - Connection reset by peer

 What could be wrong? Is there anything related to the printer
 configuration?

 Thanks a lot.

 Chuming Chen
 Unix System Support
 Dept. of Computer Science and Engineering
 Univeristy of South Carolina
 1D49 Swearingen Building
 803-576-6308




 # ./ifhp -Tmodel=hp4300,dev=l39%9100,trace,debug=1  /tmp/one.ps
 ifhp 23:42:29.773 [25667] main: Debug '1', DbgFlag 0x0, inputfile
 'DEVFD0'
 ifhp 23:42:29.774 [25667] main: dump NULL
 ifhp 23:42:29.774 [25667] main: Model_id 'hp4300'
 ifhp 23:42:29.774 [25667] main: LANG 'NULL', 'TRANSLATE TEST' is
 'TRANSLATE TEST'
 ifhp 23:42:29.886 [25667] main: scanning Raw for default, then
 model 'hp4300'
 ifhp 23:42:30.012 [25667] main: scanning for model 'hp4300'
 ifhp 23:42:30.014 [25667] main: using model 'hp4300'
 Version ifhp-3.5.10
 $Id: ifhp.c,v 1.96 2002/07/12 23:33:21 papowell Exp papowell $
 Copyright 1992-2002 Patrick Powell [EMAIL PROTECTED]
 ifhp 23:42:30.014 [25667] Open_device: device 'l39%9100'
 ifhp 23:42:30.015 [25667] Open_device: closed fd 1
 ifhp 23:42:30.017 [25667] Link_open: destination '139.252.130.98'
 port 9100, attempt 1
 ifhp 23:42:30.019 [25667] Fd_readable: nonblocking read returned
 -1, errno 11 (Resource temporarily unavailable)
 ifhp 23:42:30.020 [25667] Open_device: success
 ifhp 23:42:30.020 [25667] Fd_readable: nonblocking read returned
 -1, errno 11 (Resource temporarily unavailable)
 ifhp 23:42:30.020 [25667] main: poll for status 0, Dev_sleep 1000
 msec
 ifhp 23:42:30.029 [25667] Check_pagecount: pagecount using 'pjl
 info pagecount'
 ifhp 23:42:30.030 [25667] Process_job: setting up printer
 ifhp 23:42:30.030 [25667] Start_of_job: do_pagecount 1, ps 0, pjl
 1, prog 'NULL'
 ifhp 23:42:30.030 [25667] Do_sync: getting sync using 'pjl echo'
 ifhp 23:42:30.031 [25667] Start_of_job: 'pjl_init'='[ info=id
 ustatus teoj ]'
 ifhp 23:42:30.032 [25667] Write_read_timeout: Read_status_timeout
 returned -1
 ifhp 23:42:30.032 [25667] Write_read_timeout: read from printer
 failed - Connection reset by peer
 ifhp 23:42:30.032 [25667] Do_sync: EOF on connection

The 'read from printer failed - Connection reset by peer' error
indicates that the printer closed the connection.  This is VERY
odd,  and indicates that there is some mystery problem.

save the following into a file (note: the ^[ are escape chars):


[EMAIL PROTECTED]
@PJL RESET
@PJL JOB NAME = _ DISPLAY = _
@PJL RDYMSG DISPLAY = _
@PJL INFO ID
@PJL USTATUSOFF
@PJL USTATUS JOB = ON
@PJL USTATUS DEVICE = ON
@PJL USTATUS PAGE = ON
@PJL USTATUS TIMED = 10
@PJL ENTER LANGUAGE = POSTSCRIPT
%!
%!PS-Adobe-3.0
%% one page (i.e. - a page with a 1 on it)
%%/Times-Roman
/Courier
findfont 200 scalefont setfont
72 300 moveto
(1) show
showpage
[EMAIL PROTECTED]
@PJL RDYMSG DISPLAY = _
@PJL EOJ NAME = _
@PJL USTATUSOFF
@PJL USTATUS JOB = ON
@PJL USTATUS DEVICE = ON
@PJL USTATUS PAGE = ON
@PJL USTATUS TIMED = 10
@PJL RDYMSG DISPLAY = Done:  :
%-12345X

Now use netcat:

nc l39 9100 /tmp/saved_stuff

You should see status information returned.

What happens when you do this?

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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: Re: LPRng with MacOS9 as a client fails

2004-01-23 Thread Patrick Powell
 From [EMAIL PROTECTED] Thu Jan 22 09:23:14 2004
 Date: Thu, 22 Jan 2004 17:24:17 +0100
 From: Rasca [EMAIL PROTECTED]
 To: John Perkins [EMAIL PROTECTED]
 CC: [EMAIL PROTECTED]
 Subject: Re: LPRng: Re: LPRng with MacOS9 as a client fails

 John Perkins schrieb:
  On Mon, 19 Jan 2004 10:33:42 +0100
  Rasca [EMAIL PROTECTED] wrote:
  
  
 I've to debug it by my self :-(. So, may be someone can
 explain me the DEBUG-flag system of LPRng. E.g. how
 to enable the following two statements:
 
 DEBUGF(DRECV2)(..
 DEBUGF(DRECV1)(..
 
 lpd -F -Dwhatever..!?
  
  
  lpd -F -Drecv+2

 fox:~ # lpd -F -Drecv+2
 debug usage: -D [ num | flag=num | flag=str | flag | flag@ | flag+N ]*
flags recognized: network[+N,@], database[+N,@], lpr[+N,@],
 lpc[+N,@], lprm[+N,@], lpq[+N,@], log[+N,@],
 test=num
 fox:~ #

 mhh...!?

 cu
   rasca


network:  show low level network stuff.
database:  show low level database stuff.
lpr:  show servicing lpr actions, i.e. - recv
lpq:  show servicing lpq actions, i.e. - recv
lprm:  show servicing lprm actions, i.e. - recv
log:  Evil.  don't use this unless you read the code.
test:  Evil.  don't use this unless you read the code.

Numerical values:  for printing (unspooling) actions.  

They really should be print+1, print+2, etc. etc.

I will put this in at the next release.  Also update the error message.


Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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: Re: LPRng with MacOS9 as a client fails

2004-01-23 Thread Patrick Powell
 From [EMAIL PROTECTED] Thu Jan 22 09:23:14 2004
 Date: Thu, 22 Jan 2004 17:24:17 +0100
 From: Rasca [EMAIL PROTECTED]
 To: John Perkins [EMAIL PROTECTED]
 CC: [EMAIL PROTECTED]
 Subject: Re: LPRng: Re: LPRng with MacOS9 as a client fails

 John Perkins schrieb:
  On Mon, 19 Jan 2004 10:33:42 +0100
  Rasca [EMAIL PROTECTED] wrote:
  
  
 I've to debug it by my self :-(. So, may be someone can
 explain me the DEBUG-flag system of LPRng. E.g. how
 to enable the following two statements:
 
 DEBUGF(DRECV2)(..
 DEBUGF(DRECV1)(..
 
 lpd -F -Dwhatever..!?
  
  
  lpd -F -Drecv+2

 fox:~ # lpd -F -Drecv+2
 debug usage: -D [ num | flag=num | flag=str | flag | flag@ | flag+N ]*
flags recognized: network[+N,@], database[+N,@], lpr[+N,@],
 lpc[+N,@], lprm[+N,@], lpq[+N,@], log[+N,@],
 test=num
 fox:~ #

 mhh...!?

 cu
   rasca


 -- 
 ___
 | Triad Berlin Projektgesellschaft mbH | http://www.triad.de/ |


Next release:
# lpc -D=

debug flag format: num | flag[+num] | flag=str
  flag names: print[+N], lpr[+N], lpc[+N], lprm[+N], 
   lpq[+N], network[+N], database[+N], log[+N], 
   test=num
 use on command line, or in printcap :db=... entry
 for server:
   print: show queue (printing) actions, larger number, more information
 NUMBER same as print+NUMBER
   lpr:   show servicing lpr actions
   lpq:   show servicing lpq actions
   lprm:  show servicing lprm actions
   network:   show low level network actions
   database:  show low level database actions
   log:   Testing.  Don't use this unless you read the code.
   test:  Testing.  don't use this unless you read the code.
 for clients (lpr, lpq, etc):
   print: show client actions, larger number, more information
 NUMBER same as print+NUMBER
   network:   show low level network actions.
   database:  show low level database actions.

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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 with MacOS9 as a client fails

2004-01-23 Thread Patrick Powell
 From [EMAIL PROTECTED] Thu Jan 22 09:25:47 2004
 Date: Thu, 22 Jan 2004 17:38:46 +0100
 From: Rasca [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: LPRng: LPRng with MacOS9 as a client fails

 Hi,

 Rasca schrieb:
  btw. does any one know what tool to use to trace IP
  packetes from mac os 9?
  I want to see why the mac os 9 LPR client is working fine
  with a HP 8000 series but not with LPRng or BSD lpd.

The various HP and other printers do not implement RFC1179 totally,
consistently, or even try to claim they do.

In fact, given the large number of broken systems, they simply do the
following:

A print job consists of a Control file, and some data files.
When you send a control file to the printer, it is ignored.
You will be back a 'successful' status even if the file format
is REALLY bad.

When you send a data file,  it is tossed to the print engine as
it arrives.  At the end of the file, a 'successful' status is returned,
even if there were horrible errors.

Of course,  if you kill the transfer,  you may get only part
of the job printed,  but what do you expect?

Patrick (This printer lowers the
   standard for the term 'Dumb Printer') Powell

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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: lpc -a status doesn't seem to work, but lpc -Pname status does

2004-01-23 Thread Patrick Powell
 From [EMAIL PROTECTED] Thu Jan 22 10:55:10 2004
 Date: Thu, 22 Jan 2004 18:02:37 + (GMT)
 From: Toby Blake [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: lpc -a status doesn't seem to work, but lpc -Pname status does

 Hi there,

 I am seeing a problem where 'lpc -a status' doesn't work, but
 referring to printers individually does.  Here's an example to
 clarify:

 [kant]toby: lpc -a status
 [EMAIL PROTECTED]: spool queue for 'fh2' does not exist on server kant.inf.ed.ac.uk
 

non-existent printer or you need to run 'checkpc -f'
 [EMAIL PROTECTED]: spool queue for 'jc4' does not exist on server kant.inf.ed.ac.uk
non-existent printer or you need to run 'checkpc -f'

 ... and so on and on for all the printers in our printcap.

 Whereas if I refer to them individually

 [kant]toby: lpc -Pfh2 status
  Printer   Printing Spooling Jobs  Server Subserver Redirect Status/(Debug)
 [EMAIL PROTECTED]  enabled  enabled0nonenone
  ^

 [kant]toby: lpc -Pjc4 status
  Printer   Printing Spooling Jobs  Server Subserver Redirect Status/(Debug)
 [EMAIL PROTECTED]   enabled  enabled0nonenone jc4c

 Firstly, it's probably important to note that our printcap entry is
 actually a program (all our printcap details are stored in LDAP).  So
 in our lpd.conf, we have:

 printcap_path=| -$ /usr/bin/pcap-query

 So, for some reason the lpc -a is failing, although it's clearly
 getting the list of queuenames correctly as I get a message for them
 all.

 'echo all|pcap-query' works as specified too.

 Can anyone help here?

 Many thanks
 Toby Blake
 University of Edinburgh

Ummm... perhaps this is the problem?  You may need to fix up the
printcap information returned.

Patrick Powell

-
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: changing host name

2004-01-23 Thread Patrick Powell
This is cool.  I like it.  Now, how about a UNIX perl/TK popup?

Patrick

 From [EMAIL PROTECTED] Wed Jan  7 03:33:09 2004
 Date: Wed, 7 Jan 2004 11:47:45 +0100 (MET)
 From: [EMAIL PROTECTED]
 To: Derek Wanless [EMAIL PROTECTED]
 Cc: [EMAIL PROTECTED]
 Subject: Re: LPRng: changing host name

 Hi Derek,

 not as far as I know (unless you do some tweaking in the code;-)

 I had the same problem and did a simple (?) workaround. I use another
 field in the controlfile, which is used to supply a mailadress, for
 sending a mail to the user after the job has completed. As we don't use
 this I use the field to supply the hostname:

 print command = /usr/spool/lp/bin/lpr -r -Fl -J%J -m%m -U%U -P%p %s

 Of course lprng tries now to send a mail to the supplied 'e-mail-adress',
 to do something else instead you need to define something different than
 sendmail in the lpd.conf of the printserver:

 [printsrv2] ~ $ grep sendmail ~lp/etc/lpd.conf
 # Purpose: sendmail program
 #   default sendmail=/usr/sbin/sendmail -oi -t  (STRING)
 sendmail=/usr/spool/lp/bin/notification

 [printsrv2] ~ $ cat /usr/spool/lp/bin/notification
 #!/bin/sh
 # test NT user notification through SAMBA
 #   exec 2/tmp/notify.log
 #   set -x
 PATH=/bin:/usr/bin:/usr/local/bin
 export PATH
 HOST=`cat | awk -F: '$1~ /To/{print $2}'`
 echo Your printjob has finished printing on $PRINTER \\n
 \\nPrintservice was brought to you by group IT using SAMBA 2.2.4 |
 /usr/bin/smbclient -Ulp -M$HOST
 exit 0

 In my case the script sends a popup to the originating host. Of course you
 could also define a controlfile filter on the server and change the values
 in the controlfile appropriate (m - H) if you need the information in
 the right place. The control file filter just reads from STDIN and
 writes to STDOUT for ex:

 hsps1|64c_25_p1:\
 :lp=hsps1%9100:\
 :control_filter=/usr/spool/lp/bin/control_file_filter.sh:\
 :bp=/usr/spool/filters/psbanner:\
 :of=/usr/spool/ifhp/libexec/filters/ifhp:\
 :ifhp=model=hp4050:\
 :filter=/usr/spool/ifhp/libexec/filters/ifhp:\
 :translate_incoming_format=lf:\
 :ab:\
 :mx#0:\
 :du#16:\
 :
 [printsrv2] ~ $ cat /usr/spool/lp/bin/control_file_filter.sh
 #!/bin/sh
 while read LINE
 do
 echo $LINE | /usr/bin/sed /\^M/d
 done


 hope this helps, check out the Howto for further details ;-)
   ~christoph


 -- 
 /*   Christoph Beyer |   Office: Building 2b / 23 *\
  *   DESY|Phone: 040-8998-2317*
  *   - IT -  |  Fax: 040-8998-4060*
 \*   22603 Hamburg   | http://www.desy.de */


 On Wed, 7 Jan 2004, Derek Wanless wrote:

  I have a Samba server which users LPRng 3.8.19 as released with Redhat
  9. The server does not do any actual printing but forwards the print
  jobs to one of 2 print servers depending upon whether the printer to be
  used is accounted or not. My problem is that I need the server that
  deals with accounted printers to know the name/IP address of the PC that
  generated the print job rather than the name of the samba server that
  issued the lpr command i.e. override the value of the 'H' line in the
  control file with the %M samba value. Can this be done and, is so, then how?
 
  --
  Derek
  _
  Dr. D. Wanless   Tel: +44 (0)1782 583071
  Computing Services   Fax: +44 (0)1782 584234
  Keele University Email: [EMAIL PROTECTED]
  Keele,Staffs. ST5 5BG
 
 
  -
  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 

Re: maybe this should go to the cookbook Re: LPRng: changing host name

2004-01-23 Thread Patrick Powell
Right.  On the list.

Could I get the following:

a) explanation of how the popup on Windows works (for the recipe).

b) Samba configuration changes (if any) to make this work.

 From [EMAIL PROTECTED] Wed Jan  7 13:13:13 2004
 Date: Wed, 7 Jan 2004 15:37:23 -0500 (EST)
 From: James.Q.L [EMAIL PROTECTED]
 Subject: maybe this should go to the cookbook  Re: LPRng: changing host name  
 To: [EMAIL PROTECTED]

 how many times have you answered the same question, Rick ?  :) 

 i think this answer would be perfect to go into the LPRng cookbook.


 Qiang.




  --- Rick Cochran [EMAIL PROTECTED] wrote:  In smb.conf:
  
  print command = /usr/common/LPRng/bin/lpr -P%p -CSOURCE=SAMBA,REMOTEIP=%I -r %s
  
  or something like that.  You can then write a filter to rewrite the control file 
  in LPRng before sending it on.
  
  -Rick
  
  Derek Wanless wrote:
   I have a Samba server which users LPRng 3.8.19 as released with Redhat 
   9. The server does not do any actual printing but forwards the print 
   jobs to one of 2 print servers depending upon whether the printer to be 
   used is accounted or not. My problem is that I need the server that 
   deals with accounted printers to know the name/IP address of the PC that 
   generated the print job rather than the name of the samba server that 
   issued the lpr command i.e. override the value of the 'H' line in the 
   control file with the %M samba value. Can this be done and, is so, then 
   how?
   
  
  -- 
  |Rick Cochran   phone: 607-255-7618|
  |Cornell CIT - Systems  Operations - Net-Print   FAX: 607-255-8521|
  |730 Rhodes Hall, Ithaca, N.Y. 14853email: [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.
  - 

 __ 
 Post your free ad now! http://personals.yahoo.ca

 -
 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: 3.8.24 and run.515

2004-01-23 Thread Patrick Powell
!m
 From [EMAIL PROTECTED] Wed Jan  7 14:44:35 2004
 Date: Wed, 7 Jan 2004 23:11:37 +0100
 From: Thomas Bork [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: 3.8.24 and run.515

 Hi,

 I'm configured 3.8.24 with

 --with-lockfile=/var/run

 Complete options:

 ./configure \
 --with-libiconv-prefix=no \
 --with-included-gettext \
 --without-libintl-prefix \
 --with-openssl=no \
 --without-openssl-inc \
 --without-openssl-lib \
 --with-ssl_ca_file=no \
 --with-ssl_ca_key=no \
 --with-ssl_certs_dir=no \
 --with-ssl_crl_file=no \
 --with-ssl_server_cert=no \
 --with-ssl_server_password_file=no \
 --disable-setuid \
 --without-libiconv-prefix \
 --target=i486-pc-linux-gnu \
 --prefix=/usr \
 --sysconfdir=/etc \
 --libexecdir=/usr/lib \
 --disable-kerberos \
 --disable-mit_kerberos4 \
 --disable-kerberos_checks \
 --disable-nls \
 --disable-ssl \
 --with-lpd_conf_path=/etc/lpd.conf \
 --with-lpd_perms_path=/etc/lpd.perms \
 --with-initpath=no \
 --with-lockfile=/var/run \
 --with-userid=lp \
 --with-groupid=lp \
 --with-done_jobs=0

 But every start a file run.515 is created. Is this the normal behaviour? I thought, 
 that all lockfiles will be in /var/run due configure options?

 Best regards
 tom
 __
 Erdbeben im Iran: Zehntausende Kinder brauchen Hilfe. UNICEF hilft den
 Kindern - helfen Sie mit! https://www.unicef.de/spe/spe_03.php

a) What is the full path to the file?
b) What does /etc/lpd/lpd.conf (/.../LPRng-version/src/lpd.conf at compile
   time) show for the lockfile location?

# Purpose: lpd lock file
#   default lockfile= /var/run/lpd  (STRING)
# Purpose: where to send status information for logging

c) Look in /.../LPRng/src/Makefile for defs.h:

defs.h: Makefile
cp /dev/null $@
echo #define  CHOWN \/usr/sbin/chown\ $@
echo #define  CHGRP \/usr/bin/chgrp\ $@
echo #define  PRINTCAP_PATH \${sysconfdir}/printcap\ $@
echo #define  LPD_PRINTCAP_PATH \${sysconfdir}/lpd/lpd_printcap\ $@
echo #define  LPD_PERMS_PATH \${sysconfdir}/lpd/lpd.perms\ $@
echo #define  LPD_CONF_PATH \${sysconfdir}/lpd/lpd.conf\ $@
echo #define  REQUIRE_CONFIGFILES \1\ $@
echo #define  FILTER_PATH \/bin:/usr/bin:/usr/local/bin\ $@
echo #define  LD_LIBRARY_PATH \/lib:/usr/lib:/usr/local/lib\ $@
echo #define  LOCKFILE \/var/run/lpd\ $@  
 here
echo #define  CLEAR \/usr/bin/clear\ $@
echo #define  USERID \daemon\ $@
echo #define  GROUPID \daemon\ $@
echo #define  LOCALEDIR \${prefix}/share/locale\ $@
echo #define  DONE_JOBS \1\ $@
echo #define  DONE_JOBS_MAX_AGE \0\ $@
echo #define  UNIXSOCKETPATH \/var/run/lprng\ $@
echo #define  PRUTIL \/usr/bin/pr\ $@
echo #define  OPENSSL \/usr/bin/openssl\ $@
echo #define  SSL_CA_FILE \${sysconfdir}/lpd/ssl.ca/ca.crt\ $@
echo #define  SSL_CA_KEY \${sysconfdir}/lpd/ssl.ca/ca.key\ $@
echo #define  SSL_CRL_FILE \${sysconfdir}/lpd/ssl.crl/ssl.crl\ $@
echo #define  SSL_CERTS_DIR \${sysconfdir}/lpd/ssl.certs\ $@
echo #define  SSL_SERVER_CERT \${sysconfdir}/lpd/ssl.server/server.crt\ 
$@
echo #define  SSL_SERVER_PASSWORD_FILE 
\${sysconfdir}/lpd/ssl.server/server.pwd\ $@
echo #define  SD_DEFAULT \/var/spool/lpd\ $@

This should help clean up the mystery.

Patrick

-
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: Job Removal

2004-01-23 Thread Patrick Powell
 From [EMAIL PROTECTED] Thu Jan  8 07:57:55 2004
 Date: Thu, 8 Jan 2004 09:06:22 -0600
 From: Randy Parker [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: Job Removal

 I am having a problem getting LPRng lpd to remove
 rejected jobs automatically.

 I want to accept jobs from user eprod so the remote
 client's lp daemon doesn't go into pest mode, but throw 
 the accepted job away and never print it. The jobs get 
 accepted for spooling and the job never prints but the 
 spooled jobs also never disappear. I have to remove them
 with lprm via a cron job. What am I doing wrong?

 The lines affecting eprod in the lpd.perms file look
 like this.

   ACCEPT SERVICE=R REMOTEUSER=eprod
   REJECT SERVICE=P REMOTEUSER=eprod

 An lpq output looks like this.

Rank   Owner/ID  Class Job Files Size Time
   error  [EMAIL PROTECTED]A   907 ERROR: no permission to print
   error  [EMAIL PROTECTED]A   908 ERROR: no permission to print


Set up an incoming_control_filter to detect the job

lp:
  :...
  :incoming_control_filter=/path/to/filter

filter:

#!/usr/bin/perl -p
# exit with JREMOVE to toss the job
exit 3 if( /^/ );

The /^/ should match one of the lines in the control
file.  I suspect the following should work:
/[EMAIL PROTECTED]/

Patrick Powell
Your original email ended up in my Spam Collection Sack, and this
is not the best place for it.  This could be due to that fact
that you sent it directly to me, or you sent it to the LPRng mailing
list and you were not subscribed to it.  Or you might be trying to
beat the list security and were sending to lprng-owner and expecting
to spam the list :-)

If you are subscribed to the mailing list,  then you might have
sent it from a site or address different than the one that you
registered with.  If the latter is the case and you want to post
from this address then send me, Patrick Powell [EMAIL PROTECTED],
email describing the problem with:

LPRNGMAIL

in the SUBJECT line so my junk mail purging system will not toss
it into the bit shredder (we shred our email for security reasons).

In fact,  if you have any problems with the list, send me email
with LPRNGMAIL in the header.

The best way to get answers is via the LPRng mailing list, which
I peruse on a fairly frequent basis.

To subscribe, send mail to:

[EMAIL PROTECTED]

with the single line:

subscribe 

in the body.

This reply is sent by a semiautomatic system, and the real
person may be drinking coffee at the present time...
so my apologies for the one-size-fits-all message.

Patrick Powell Astart Technologies,
[EMAIL PROTECTED]9475 Chesapeake Drive, Suite D,
Network and System San Diego, CA 92123
  Consulting   858-874-6543 FAX 858-279-8424 
LPRng - Print Spooler (http://www.lprng.com)


-
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: changing host name

2004-01-23 Thread Patrick Powell
BUG! BUG!  Fix is in progress.

Patrick Powell

 From [EMAIL PROTECTED] Thu Jan  8 08:46:18 2004
 Date: Thu, 08 Jan 2004 16:11:24 +
 From: Derek Wanless [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: LPRng: changing host name

 Derek Wanless wrote:
  I have a Samba server which users LPRng 3.8.19 as released with Redhat 
  9. The server does not do any actual printing but forwards the print 
  jobs to one of 2 print servers depending upon whether the printer to be 
  used is accounted or not. My problem is that I need the server that 
  deals with accounted printers to know the name/IP address of the PC that 
  generated the print job rather than the name of the samba server that 
  issued the lpr command i.e. override the value of the 'H' line in the 
  control file with the %M samba value. Can this be done and, is so, then 
  how?
  

 Thanks to Christof Beyer and Rick Cochran for their help. I agree with 
 Qiang that it would be useful to have something included in the HOWTO.

 I ran into the following problems/features.

 1) The following is my printcap entry as reported by lpc:-

 lpc printcap isstaff1
 Printer: [EMAIL PROTECTED]
 isstaff1
   :control_filter=/usr/local/sbin/cfilter
   :lf=/var/spool/printers/%P/log
   :rm=praccserv.kis.keele.ac.uk
   :rp=%P
   :sd=/var/spool/printers/%P

 The jobs are spooled locally and then forwarded to praccserv. I found 
 that the control filter was actually run twice; the first time when the 
 job was spooled locally and again when the job was transferred to 
 praccserv. I got around this but had expected LPRng to be clever enough 
 to realise that one would only want to filter the job file once!

 2) LPRng does not handle the job class correctly. Once lpr has made an 
 initial decision as to the class of a job (either by default or from the 
 -C parameter on the lpr command) it ignores whatever value may be set in 
 the control file. (I think it uses the third character of the control 
 file name). This behaviour persists even if the job is transferred to 
 another spooler running LPRng. If the job is transferred to a system 
 running a different implementation of lpd (eg a lpd emulator on a 
 printer) the class is correctly taken from the contents of the control 
 file. For example, my samba server (wins3.kis.keele.ac.uk) would execute 
 the print command something like

   lpr -Pisstaff1 -Cderek.isc.keele.ac.uk -r smbprn.003713.QtExO

 The job was appeared on the queue as

   lpq -Pisstaff1
 Printer: [EMAIL PROTECTED] (dest [EMAIL PROTECTED])
   Queue: 1 printable job
   Server: no server active
   Status: isstaff1: Check_for_missing files: SUCCESS 
 'cfD379derek.isc.keele.ac.uk' at 14:21:41.145
   Rank   Owner/ID  Class Job Files Size Time
 1  [EMAIL PROTECTED]  D   379 smbprn.003713.QtExOK 61491 
 14:21:41
 done   [EMAIL PROTECTED]  D   616 smbprn.003709.H0njIT 61491 
 14:08:23
 Printer: [EMAIL PROTECTED] (originally isstaff1) (dest [EMAIL PROTECTED]) 
 'IS staff printer' (printing disabled) (bounce to 
 [EMAIL PROTECTED])
   Queue: no printable jobs in queue
   Status: server finished at 14:10:59
 JetDirect lpd: no jobs queued on this port

 Note that the control file name starts cfD and its contents were

   cat cfD379derek.isc.keele.ac.uk
 [EMAIL PROTECTED]
 CA
 D2004-01-08-14:21:41.095
 Hderek.isc.keele.ac.uk
 Jsmbprn.003713.QtExOK
 Lcca15
 Pcca15
 Qisstaff1
 Nsmbprn.003713.QtExOK
 fdfA379derek.isc.keele.ac.uk
 UdfA379derek.isc.keele.ac.uk

 Also note that my filter only modified the class and host (C and H) 
 lines. Strangely enough the f and U lines have been remade by lprng but 
 not the A line. You will note that the class is set to A but lpq has 
 reported it as D (the capitalised first letter of the -C parameter on 
 the lpr command.

 After being transferred to the print server (which is a bsdi machine 
 running LPRng version 3.5.3) the spool file has the same name and 
 contents and lpq still reports the class incorrectly.

 lpq -Pisstaff1
 Printer: [EMAIL PROTECTED] (dest [EMAIL PROTECTED]) 'IS staff printer' 
 (printing disabled) (bounce to [EMAIL PROTECTED])
   Queue: 2 printable jobs
   Server: no server active
   Status: server finished at 14:10:59
   Rank   Owner/ID   Class Job  Files   Size Time
 1   [EMAIL PROTECTED]   J  497 smbprn.003714.A8BoN 53310 
 14:15:54
 2   [EMAIL PROTECTED]   D  379 smbprn.003713.QtExO 61491 
 14:15:58
 JetDirect lpd: no jobs queued on this port

 However, the printer printed as standard HP banner page giving the class 
 correctly as A.

 -- 
 Derek
 _
 Dr. D. Wanless   Tel: +44 (0)1782 583071
 Computing Services   Fax: +44 (0)1782 584234
 Keele University Email: [EMAIL PROTECTED]
 Keele,Staffs. ST5 5BG

Re: LPRng: lprm closed ports ?

2003-12-17 Thread Patrick Powell
 From [EMAIL PROTECTED] Thu Dec 11 06:48:31 2003
 Date: Thu, 11 Dec 2003 15:08:52 +0100
 From: Julien Bournelle [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: lprm closed ports ?

 Hi all,

  I try to use LPRng to print on my freebsd box.
 The printer is a remote printer (hp4000) which is on the same subnet.
 I have this /etc/printcap:

 lp:\
 :sd=/var/spool/local-lp:\
 :rm=ip_addr_of_the_remote_printer:\

 I start lpd with:
 /usr/local/etc/lprng.sh start

 then
 lpc lp up

 and I can print.

 If I try to remove a job, it closes all the port on the printer. (I
 guess it is not related to 20.2 in the manual because the port is closed
 for everybody)

 Any ideas ?

You have just found Yet Another Firware Bug with HP.

Download the latest HP4000 firmware and see if it fixes it.

You can also try:
 lp:\
 :sd=/var/spool/local-lp:\
 :lp=ip_addr_of_the_remote_printer%9100:



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


Re: LPRng: Printer pooling and Jet direct

2003-12-17 Thread Patrick Powell
 From [EMAIL PROTECTED] Tue Dec  2 09:05:54 2003
 Date: Tue, 02 Dec 2003 17:15:20 +0100
 From: Magnus Sundberg [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: Printer pooling and Jet direct

 Dear sirs,
 I have looked through the documentation for lprng, but I can't 
 find any instructions about printer pooling, when you have
 1 laserjet 4M
 1 laserjet 5000
 Windows2000
 1 sambaserver.

 I can set up one single print queue at the samba server and route 
 all jobs through the server, but I don't quite understand how to 
 route the jobs forward to the least busy printer.

 Is it at all possible?

 Can anybody guide me to further resources of information?

 regards,

 Magnus Sundberg

See the Printing Cookbook - it has a section on this.

Patrick

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


LPRng: Re: suggestion for LPRNG config files

2003-12-17 Thread Patrick Powell
 From [EMAIL PROTECTED] Tue Dec  2 02:22:26 2003
 Date: Tue,  2 Dec 2003 02:21:55 -0800
 To: [EMAIL PROTECTED]
 Cc: 
 Subject: suggestion for LPRNG config files
 From: [EMAIL PROTECTED]

 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1

 Hey, just a quick question.  Are you keeping the termcap format for backwards
 compatibility reasons?  I know it's probably easy to parse, but it would
 be nice if you could read or write those config files without constantly
 searching the manpage for the meaning of those little two-letter entries.
  Things have changed since the days of termcap, memory and disk space
 are much cheaper.  If it is to have a stanza-like or nested structure,
  you might even consider taking a pointer from python and making it whitespace-
 sensitive.  A little radical perhaps, but very easy to grok.  I suppose
 I should mention XML too, but I find it user-unfriendly and mostly a
 solution in search of a problem.  Because I touch the files so infrequently,
  there's very little hope of remembering any abbreviations.  If performance
 is an issue, perhaps there should be a compilation into something machine-
 readable.

 Keep up the good work,
 me

The problem is one of backwards compatibility.

Also, you could look in /etc/lpd/lpd.conf.  This shows the name AND
the default value.


# lpd.conf
# VERSION=3.8.21
# lpd.conf generated from  on Tue Aug 12 10:14:17 PDT 2003
#   The values in this file are the default values.
#   If you modify the file,  set the value to something other than the default
#   For example,
# # default force_localhost
#   means the 'force_localhost' option default value is on or 1
#   To set it to OFF or 0, change this to read:
# force_localhost@

# Purpose: always print banner, ignore lpr -h option
#   default ab@ (FLAG off)
# Purpose: query accounting server when connected
#   default achk@ (FLAG off)
# Purpose: accounting at end (see also af, la, ar, as)
#   default ae=jobend $H $n $P $k $b $t $'C $'J $'M  (STRING)
# Purpose: name of accounting file (see also la, ar)
#   default af=acct  (STRING)
# Purpose: automatically hold all jobs
#   default ah@ (FLAG off)
# Purpose: Allow use of LPD_CONF environment variable
#   default allow_getenv@ (FLAG off)
# Purpose: allow users to request logging info using lpr -mhost%port
#   default allow_user_logging@ (FLAG off)
# Purpose: allow these users or UIDs to set owner of job.  For Samba front ending
#   default allow_user_setting=  (EMPTY STRING)
# Purpose: append these -Z options to end of options list on outgoing or filters
#   default append_z=  (EMPTY STRING)

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  Consulting   858-874-6543 FAX 858-751-2435
LPRng - Print Spooler (http://www.lprng.com)

-
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 homepage http://www.lprng.com/ broken ?

2003-12-17 Thread Patrick Powell
Fixed.  Grrr  Also half the files in the Support section
are gone.   Looks like another dying hard drive.

Patrick

 From [EMAIL PROTECTED] Thu Dec 11 17:14:35 2003
 Date: Fri, 12 Dec 2003 01:18:06 +0100
 From: Roland Mainz [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: LPRng homepage http://www.lprng.com/ broken ?


 Hi!

 

 Did anyone noticed yet that the LPRng home page at http://www.lprng.com/
 is broken ? The main page is gone and Apache now views a directory
 listing... ;-(

 

 Bye,
 Roland

 -- 
   __ .  . __
  (o.\ \/ /.o) [EMAIL PROTECTED]
   \__\/\/__/  MPEG specialist, CJAVASunUnix programmer
   /O /==\ O\  TEL +49 2426 901568 FAX +49 2426 901569
  (;O/ \/ \O;)

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


LPRng: Re: Fixes for LPRng 'Cookbook' Manual; Erroneous Default in 'ifhp.conf'

2003-12-17 Thread Patrick Powell
 From [EMAIL PROTECTED] Sun Dec 14 14:15:20 2003
 From: Marr [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Fixes for LPRng 'Cookbook' Manual; Erroneous Default in 'ifhp.conf'
 Date: Sun, 14 Dec 2003 17:14:03 -0500
 Cc: [EMAIL PROTECTED]

 Hello,

 Beginning back in Oct 2002, I've sent the same email 3 times directly to 
 '[EMAIL PROTECTED]' with some corrections to the LPRng 'Printing 
 Cookbook' (etc). I've never received any reply and after periodic checking, I 
 continually see that none of my changes have been addressed/fixed.

 Despite the fact that I no longer actively use LPRng, I saw this mailing list 
 and recently joined in the hope that this might be the proper venue to 
 finally see my corrections addressed in some fashion.

 Below is a copy of the email I sent on 15 Oct 2002, 16 Dec 2002, and 30 Aug 
 2003.

 Any comments or suggestions are much appreciated.

 Bill Marr


Sending email directly to [EMAIL PROTECTED] is competing with the
approximately 3000 other emails per week sent there.

Email sent to the LPRng mailing list will, I hope, at least get read.

Patrick

-
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: lengthy delay between one job finishing and another one starting

2003-12-17 Thread Patrick Powell
 From [EMAIL PROTECTED] Mon Dec 15 03:36:49 2003
 Date: Mon, 15 Dec 2003 10:46:45 + (GMT)
 From: Toby Blake [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: LPRng: lengthy delay between one job finishing and another one
  starting

  If you are using your own filters,  then make sure you close
  the STDOUT/STDIN, etc., and make sure you exit.

 I'm almost 100% certain that the problem is *not* related to our
 filters.  As you can see below, the psif filter happily finishes at
 15:27:59, however there is a further delay of 7 minutes while lpd is
 waiting for the subserver to exit:

 IF filter 'psif' filter finished at 2003-12-09-15:27:59.884 ## [EMAIL PROTECTED] 
 number=602 process=23168
 printing finished at 2003-12-09-15:27:59.884 ## [EMAIL PROTECTED] number=602 
 process=23168
 accounting at end at 2003-12-09-15:27:59.910 ## [EMAIL PROTECTED] number=602 
 process=23168
 finished '[EMAIL PROTECTED]', status 'JSUCC' at 2003-12-09-15:27:59.910 ## [EMAIL 
 PROTECTED] number=602 process=23168
 waiting for subserver to exit at 2003-12-09-15:34:58.800 ## A=NULL number=0 
 process=23164
 subserver pid 23168 exit status 'JSUCC' at 2003-12-09-15:34:58.800 ## A=NULL 
 number=0 process=23164

 Note that these subserver lpd processes appear in output from top as
 'defunct' and won't be killed even by a kill -9 but are killed somehow
 after the delay above.

 I also only seem to see this problem when there are a lot of jobs in
 the queue - in this case, in excess of 40 on one printer and 20+ on
 another printer, both served by this server - as the queue sizes go
 down, the delay goes down too.  Can the size of the queue be affecting
 this?

 Toby

These processes are 'zombies' waiting for the main LPD process to
harvest (wait) for them.  The LPD code is waiting in a select
loop for either a process to exit or for a connection.

Setup_waitpid_break();
errno = 0;
fd_available = select( max_socks,
FD_SET_FIX((fd_set *))readfds,
FD_SET_FIX((fd_set *))0,
FD_SET_FIX((fd_set *))0, timeout );
err = errno;
Setup_waitpid();

plp_signal_t sigchld_handler (int signo)
{
signal( SIGCHLD, SIG_DFL );
write(Lpd_request,\n, 1);
}

void Setup_waitpid (void)
{
signal( SIGCHLD, SIG_DFL );
}

void Setup_waitpid_break (void)
{
(void) plp_signal_break(SIGCHLD, sigchld_handler);
}

So under load, the LPD server will probably wait in the select for 
a while.

Patrick

-
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: Competitors

2003-12-17 Thread Patrick Powell
 From [EMAIL PROTECTED] Mon Dec 15 08:11:51 2003
 Date: Mon, 15 Dec 2003 10:29:36 -0500 (EST)
 From: William C Beegle [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: LPRng: Competitors

 On Fri, 12 Dec 2003, Patrick Powell wrote:
  You can get commercial support for LPRng from Astart Technologies.
 
  1. You can do quotas.
  2. You can do accounting.
  3. You can use the Samba interface and support SMB printing.

 Good to know.  I've forward this along to the management types.

 Does Astart support the Samba side of things or recommend someone who
 does?  Windows printing accounts for a lot of our total printing, so we're
 concerned about the windows printing experience.  It'd be nice to have
 some help with that side of things.

 -willie

 P.S. I'm not sure if I should take this up privately or keep it on the
 list.  For now, I'm posting to the list because it's a chance for Patrick
 to get in some free advertising.  :-)

I do Samba.  I even have some patches for it that help
do management a bit better.

Patrick

-
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: Competitors

2003-12-17 Thread Patrick Powell
 From [EMAIL PROTECTED] Mon Dec 15 11:12:01 2003
 Date: Mon, 15 Dec 2003 13:33:13 -0500 (EST)
 From: David L. R. Houston [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: LPRng: Competitors

 On Dec 12, 2003, Patrick Powell wrote:

 PP. 1. You can do quotas.
 PP. 2. You can do accounting.
 PP. 3. You can use the Samba interface and support SMB printing.
 PP. 
 PP. The problem with a 'general package' for doing this is that
 PP. each institution seems to have its own 'backend'.
 PP. 
 PP. I have solved this by using a set of Perl scripts to access the
 PP. backend databases, etc.
 PP. 
 PP. This is included with the LPRng Commercial Package.

 Interesting.  Not sure why this never seemed obvious to me.

 question:  any current or planned support for debit card systems?  (Very
 common way to pay for print @ higher-ed land.)

   David Houston
   CIT Client Services Coordinator
   University of Vermont

The problem here is getting at the debit card information.

The usual way that this has been solved is to set up a
database with the various things you want to pay for,
and have the debit card system mark them as paid.

You periodically (or you can use a DB trigger) check for
payment and then release the job if it has been marked paid.

Patrick

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


  1   2   3   4   5   6   7   8   >