Re: LPRng: LPRng mailing list under SPAM attack

2004-06-25 Thread Daniel E Singer
On Mon, 21 Jun 2004, Patrick Powell wrote:

  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.

And the scumbags who spew out all this crap, when they're defending
themselves (in or out of court), act all innocent and say I didn't
harm anyone    Gr!  The total cost must be in the billions!

  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?

Sorry you're having to put up with this just to run a mailing list.  I
don't have anything useful to add to what others have already replied.

-Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA



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

2004-04-01 Thread Daniel E Singer
On Wed, 31 Mar 2004, Sam Warren wrote:

  This is really beginning to be annoying! I was running Debian on my s390
  with LPRng print server. Everything was fine. Then one day it seemed to stop
  deleting the data files for each print job. I solved the problem by running
  a cron job which ran checkpc -r -A 2H to remove everything older than 2
  hours. However, I don't like this because if a queue is stalled for longer
  than 2 hours, which we did have happening over night, we were loosing print
  jobs because they were over 2 hours old. I have now installed a replacement
  server. It is SUSE running on an x86 box. It has been up 2 weeks and today
  when I checked it, there were data files that had been sitting out there for
  over 200 hours. I did a checkpc -r -A 4H and it deleted a massive number of
  files, including 9 jobs that had been stalled for more than 4 hours in a
  print queue we were working on. What is going on with this? Why isn't it
  deleting files?

We were having this problem too.  It was brought up by someone else on
this list a while back, and they were told that it had been addressed
in the current release (as of a few months ago).  So we upgraded,
but then we still had the problem.  I asked about it again on this
list (a couple of months ago), but have never gotten a response.

Our work-around (not really a solution) has been to disable the
done-jobs feature; that seems to make it behave better.  But then,
we lose that feature.  :(

Regards,

-Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA

-
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: support for Canon imageRUNNER 5020 ??

2004-03-05 Thread Daniel E Singer
Is there (or could there be) any ifhp support for the Canon
imageRUNNER 5020 copier/printer?  This apparently works differently
from the imageRUNNER 550/600 series (for which ifhp support is
included), because LPRng just hangs when trying to print to it.

Thanks.

-Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA

-
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: support for Canon imageRUNNER 5020 ??

2004-03-05 Thread Daniel E Singer
On Fri, 5 Mar 2004, Daniel E Singer wrote:

  Is there (or could there be) any ifhp support for the Canon
  imageRUNNER 5020 copier/printer?  This apparently works differently
  from the imageRUNNER 550/600 series (for which ifhp support is
  included), because LPRng just hangs when trying to print to it.

Small update on this:

I added an [ ir5020 ] section to ifhp.conf, and copied into it the
ir600 section, but added status@ after the tc= line.  This lets me
print to the ir5020.  I can select duplex (lpr -Zduplex) and it
works, but staple does not.  Also, I'm a little uneasy that the
ir5020 does not seem to respond to a status request.  Maybe I'm
missing something?  Patrick, any chance you can give me some help with
this one??

-Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA

-
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-3.8.25 Released

2004-02-04 Thread Daniel E Singer
On Wed, 4 Feb 2004, Patrick Powell wrote:

  ...
  Version LPRng-3.8.25 - Wed Jan 7 04:46:12 PST 2004
  ...
Fixed:
  The 'Remove_done_jobs' code now removes done and error jobs.
  This makes the 'done_jobs' and 'done_jobs_max_age' actions
  symmetrical.

Does the above address the df* files not going away issue?

Thanks for all the updates and fixes!

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA

-
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: data files (df*) not being removed from print queues, still

2004-02-03 Thread Daniel E Singer
On Tue, 3 Feb 2004, Sam Warren wrote:

  I never saw a resolution on this. Sometime yesterday I my server quit
  deleting the old df files and I have no idea why. Did you find out what was
  causing this on your server? Thanks!

Nope, I'm not aware of any resolution to this issue.

Right now we're just having checkpc daily remove jobs that are over a
day old.  If you figure something out, please let us know!

-Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA

-
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 Daniel E Singer
On Fri, 23 Jan 2004, Toby Blake wrote:

  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.

Maybe you could show us the output, too?

And what exactly are the error messages you're getting?

When I do something like lpc status all, I get:

  Printer '[EMAIL PROTECTED]' - cannot open connection - No such file or directory
  Make sure the remote host supports the LPD protocol
  and accepts connections from this host and from non-privileged (1023) ports

but if I specify lpc status [EMAIL PROTECTED], then it works.
Maybe your problem is related?

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA

-
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: LISA meets San Diego Wildfires OR Why I have not replied to my email

2003-11-07 Thread Daniel E Singer
Patrick-

Wow, quite a tale!  Thanks for sharing your experience with the list.
I'm not a TV watcher, so I've only heard little reports on NPR and
such, which don't quite convey the magnitude.  I guess on the bright
side it was just ash, and not, say, nuclear fallout.  But mighty
freaky, to be sure.  Glad your business and home were spared ... at
least, I guess they were.  Guess I'll have to wait for Part 2 to be
sure ...

Bytheway, apologies to the list for my vacation replies to the list
the other day.  I'm using the vacation program on Solaris, and it's
usually smarter about that sort of thing.  Don't know what caused the
anomaly, maybe an interaction with spamassassin or something.  Sorry.

-Dan

-
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: ifhp-3.5.11 config/compile issue on Solaris 9

2003-10-30 Thread Daniel E Singer
Just a comment on the config/compile process:

I'm running configure with

  sh configure --prefix=/auto/pkg/ifhp-3.5.11 \
--sysconfdir=/auto/global/lprng-new/etc \
--libexecdir=/auto/pkg/ifhp-3.5.11/libexec  \
CPPFLAGS=-I/usr/local/include

Of course, I do have /usr/local/bin at the beginning of my PATH in
order to get the gcc compiler and GNU make.

When I run make, I get:

  ...
  gcc -I/usr/local/include -g -W -Wall -Werror -Wno-unused  -g -O2 -g -W -Wall -Werror 
-Wno-unused  -DHAVE_CONFIG_H -I. -I.. -I.  
-DIFHP_CONF=\/auto/global/lprng-new/etc/ifhp.conf\ 
-DLOCALEDIR=\/auto/pkg/ifhp-3.5.11/share/locale\ -DDEVFD0=\/dev/fd/0\   -c -o 
vars.o vars.c
  vars.c:19: warning: dereferencing type-punned pointer will break strict-aliasing 
rules
  vars.c:20: warning: dereferencing type-punned pointer will break strict-aliasing 
rules
  vars.c:21: warning: dereferencing type-punned pointer will break strict-aliasing 
rules
  ...

If I run configure with

  sh configure --prefix=/auto/pkg/ifhp-3.5.11 \
--sysconfdir=/auto/global/lprng-new/etc \
--libexecdir=/auto/pkg/ifhp-3.5.11/libexec  \
CPPFLAGS=-I/usr/local/include CFLAGS='-O'
 ^

to override the -O2, it compiles OK.  So, I wonder if the configure
process needs to be tweaked to correctly detect this issue?

Thanks.

-Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA

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

2002-12-13 Thread Daniel E Singer
On Fri, 13 Dec 2002, Jose wrote:

  In the following situation , I try to use lpc move :
  a big job (9000 pages) is running on printer1 causing
  all others jobs on printer1 to wait his end.
  I use the command:
  lpc move printer1 jobid printer2
 
  The command lpq -Pprinter1 tell me that the job has been
  moved to printer2, but nothing print on printer2
  What is my error ?
  We use LPRng-3.6.24 on a Redhat 7.0

Maybe try:

lpc move printer1@printserver jobid printer2@printserver

this assumes that your `printserver' is some other machine (substitute
its host name in the above command).

I don't have any other suggestions, if that doesn't work.

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA


-
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: Queue Magic -- request for help

2002-11-27 Thread Daniel E Singer
On Thu, 31 Oct 2002, Anthony Thyssen wrote:

  Daniel E Singer on  wrote...
 ...
  | I'm having trouble figuring out how to select the `:sh' (suppress
  | header page) option via printer NAME.  That is, for the benefit of our
  | Samba interface to our printing system (running on Solaris), we want
  | the PC people to be able to select (or not select) the equivalent of
  | lpr -h  through which printer they select.  So, from the Windows PC
  | perspective, printing to, say, printer pr5 would print with a header
  | page, and printing to printer pr5-h would print without a header page.
  | I want this to still go through only one queue directory for this
  | printer on the lprng server.
 ...
  | We're running LPRng-3.7.4 and ifhp-3.4.4 .
 ...
 
  It is rather simple.  All the lpr -h flag does is remove the
  L line from the control file being passed to the lpd server.
 
  As such the easy way to fix this is to add a
:incoming_control_filter={small postscript}
 
  that either removed the line starting with L or
  is no line was present, add one by duplicating the P line
  replacing the P with an L.
 ...

I finally got around to trying this particular solution ... and it
does not work.  Even if I successfully remove (or add) the L line in
the cf* file (via :incoming_control_filter), the change that I make is
not reflected in the hf* file, and it seems that the latter one is the
one that lpd is actually paying attention to.  For example, the line

L=des

is still in the hf* file (which is poorly documented in the
LPRng-3.7.4 HOWTO), and the header still gets printed.  If I stop the
queue and edit the hf* file by hand to remove that line, *then* I
don't get the header page.  I wonder if this is fixed in a later
LPRng version?  I'd update LPRng if it weren't such a huge pain in the
$*% to do...

Thanks.

-Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA


-
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: Queue Magic -- request for help

2002-10-31 Thread Daniel E Singer
On Thu, 31 Oct 2002, Anthony Thyssen wrote:

  It is rather simple.  All the lpr -h flag does is remove the
  L line from the control file being passed to the lpd server.
 
  As such the easy way to fix this is to add a
:incoming_control_filter={small postscript}
 
  that either removed the line starting with L or
  is no line was present, add one by duplicating the P line
  replacing the P with an L.
  ...

Thanks, that looks like a reasonable option.  As usual, there are many
ways that things can be done in lprng.  I might at some point go back
and investigate doing something like that.  In the mean time, I've
already devised a Samba-specific solution to the problem (ie, you
still need to use lpr -h from UNIX, so it's not a particularly
symmetric solution).  I'll go ahead and show how this was done in case
anyone else is interested.  Again, we're essentially trying to
simulate lpr -h from PCs printing through Samba.

We have a Samba-specific printcap file with entries like this:

pr5:lp=pr5printserver
pr5-h:lp=pr5printserver

And, in our Samba `smb.conf' file, we've replaced these lines:

print command = /usr/local/bin/lpr -r -P%p %s
lprm command = /usr/local/bin/lprm -P%p %j
lpq command = /usr/local/bin/lpq -P%p

with these:

print command = /usr/cs/bin/samba_lpr -r -P%p %s
lprm command = /usr/cs/bin/samba_lprm -P%p %j
lpq command = /usr/cs/bin/samba_lpq -P%p

`samba_lpr' is just a wrapper for the lpr commands, and if the printer
name has a -h suffix, then the suffix is stripped and a -h option
is added to the command arguments; then the appropriate command is
exec'd with the otherwise same argument list.  The samba_lpr script is
attached.

-Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA

#!/bin/sh
#  (#)samba_lpr1.1  2002/10/31  16:21:17
# samba_lpr: wrapper script for Samba printing;
#   see samba.conf on the Samba server;
#   this is mainly to handle the -Pprx-h header suppression setup;
# 10/2002, D.Singer

prog=`basename $0`
usage=Usage:   $prog [opts] file

case $prog in
  *lpr)
DO=print
CMD=/usr/local/bin/lpr
#CMD=./t.sh
;;
  *lpq)
DO=queue
CMD=/usr/local/bin/lpq
;;
  *lprm)
DO=remove
CMD=/usr/local/bin/lprm
;;
  *)
echo $prog: unknown invocation. 2
exit 1
  esac

# This script will replace these commands from the samba.conf file:
#
#   print command = /usr/local/bin/lpr -r -P%p %s
#   lpq command = /usr/local/bin/lpq -P%p
#   lprm command = /usr/local/bin/lprm -P%p %j
#

#
# deconstruct the command line;
#   find the -P option -- there *should* be one;
#   fix the -P option;
# reconstruct the command line;
#
cnt=
list=
got_h=
for opt do
cnt=1$cnt
list=$list $cnt
case $opt in
  '-P'?*'-h')
# remove the -h
opt=`expr $opt ':' '\(.*\)-h'`
got_h=1
if [ $DO = print ]; then
eval opt_$cnt=\-h\
cnt=1$cnt
list=$list $cnt
  fi
  esac
eval opt_$cnt=\\$opt\
  done

#
# reconstruct; this is done with all the quoting and such to make sure
# that we don't get tripped up by space or special characters within args;
#
newcmd=\$CMD\
for num in $list; do
eval opt=\\$opt_$num\
#echo opt=$opt
newcmd=$newcmd \\$opt_$num\
  done

# for testing:
#echo newcmd=$newcmd
#eval set -- $newcmd
#echo \$#=$#
#for opt do
#   echo opt=$opt
#  done

#echo exec $newcmd
eval exec $newcmd

echo $prog: should not get here! 2
exit 1



LPRng: Queue Magic -- request for help

2002-10-30 Thread Daniel E Singer
Dear lprng-wrestlers,

What I want to do:

I'm having trouble figuring out how to select the `:sh' (suppress
header page) option via printer NAME.  That is, for the benefit of our
Samba interface to our printing system (running on Solaris), we want
the PC people to be able to select (or not select) the equivalent of
lpr -h  through which printer they select.  So, from the Windows PC
perspective, printing to, say, printer pr5 would print with a header
page, and printing to printer pr5-h would print without a header page.
I want this to still go through only one queue directory for this
printer on the lprng server.

What I've tried:

We have a small Perl filter that runs between the LPRng system and
ifhp.  It preprocess some things like printer input tray selection
based on printer name suffix.  This is done by manipulating -Z
options.  I tried to figure out how to control header page printing
through this mechanism (modifying -T options), but this apparently had
no effect.  If you have any suggestions on how this might work, please
let me know, because it would be the most transparent from our printer
setup perspective.

I've tried messing with printcap file entries, to have a separate
pr5-h stanza which then `:tc's the pr5 entry.  It gets kind of messy,
and then for some reason, use of pr5-h mysteriously introduces a very
long time delay into the print job (maybe a couple of minutes).
Again, I do want it to use the same queue directory, if at all
possible.

We're running LPRng-3.7.4 and ifhp-3.4.4 .

Suggestions?  Other ideas?

Thanks...

-Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA
Non cognosco. In hoc tantum laboro.


-
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: HPColor LJ 4500 timeout on warmup

2002-10-02 Thread Daniel E Singer

On Fri, 13 Sep 2002, John Perkins wrote:

  The other option is to crank up the waitend_timeout and
  idle-timeout for the printer such that LPRng doesn't give up during
  ^^
  the warm-up cycle.  You can still run into problems if the printer
  sits jammed or out-of-paper for long enough.

Wow, this did it for us, glad to find this out!  The idle-timeout is
not mentioned in our printer documentation, and it does not show up in
the console menus ... have to get to it via telnet.  :/  Sheesh!

Thanks, this has been a headache for a long time.

Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA


-
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: pagecounting on the hp4100

2002-08-19 Thread Daniel E Singer

On Mon, 19 Aug 2002, Sam Noble wrote:

   Has anybody found a reasonable way to get pagecount data out of
  the HP Laserjet 4100?

Look for HP 4050 in the mailing list archives, and you should find
some answers.

-Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA


-
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 redirect - application socket

2002-04-17 Thread Daniel E Singer

On Wed, 17 Apr 2002 [EMAIL PROTECTED] wrote:

  I'm still using 3.8.3 on my SOLARIS 7 machines, but I think this is more a
  global kind of problem. I want to use the 'lpc redirect' command on a
  queue that uses the application socket (Tectronix printer). My printcap
  entry is:
 
  h01cp1t|1b_338_c_t|:\
  ...
 
  Using the 'lpc' command generally works fine but the jobs never get to the
  new destination queue becaus the IFHP filter tries to send them to the
  printer itself. I always thought in case of a redirected printer the
  filtering takes place in the final destination queue (?)

I have found that to get this to work (lprng 3.7.4), I need to specify
the server explicitely:

lpc redirect printerA@printserver printerB@printserver

You might also need to restart lpd on the server.

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA
Non cognosco. In hoc tantum laboro.


-
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: counting pieces of paper used in a print job

2002-04-11 Thread Daniel E Singer

On Thu, 11 Apr 2002, Sam Noble wrote:

   I'm interested in counting the number of *PIECES OF PAPER* used by
  our duplexing HP 4050 printers (and perhaps some 4000 and 4100 models as
  well). We charge people for printing but would like to encourage the use
  of our duplexing printers -- save the earth and all. Obviously, it's
  always possible for somebody to alternate in blank pages, but I think
  that this can be dealt with by charging slightly more than %50 of the
  price of a single-sided job.
 
   Has anybody done this? Can you outline the steps you took?
 
   It occurred to me that I might mess around with bounce queues, but
  in the end I want to have a single output queue which directly talks (via
  ifhp) to each printer, but I need my accounting file to reflect the fact
  that a job was duplexed or not (which I might be able to do simply by
  running a script on the postscript job to check for the duplexing
  postscript commands).

In our printcap, we use the stock lprng accounting scripts:

 :as=|/auto/global/lprng/libexec/filters/accounting.pl start
 :ae=|/auto/global/lprng/libexec/filters/accounting.pl end

and also this:

 :ifhp=model=hp4050,of_options=pagecount waitend 
 :accounting=/auto/global/lprng/libexec/filters/acc.pl

which runs acc.pl after each job.

The acc.pl script is attachment #1.  For weird reasons, we write
accounting info to two different files...  Produces lines like this:

 ifhp|rebecca|7763|appenzell|pr62|o|duplex|217353|3|2002-04-11-16:22:55.498
 ifhp|parag|7771|ojibwa|pr69|o|simplex|141945|3|2002-04-11-16:25:48.718

Then every month, we split off the old month's lines and run
a report with this script, attchment #2, also perl:

  % pracct -h

 Usage:  pracct [-bhnptu] [-i user] [-L file]

 -u  Show accounting by user
 -p  Show accounting by printer
 -i  Show accounting for a specific user
 -t  Show page total only
 -b  Omit headers and totals, and separate fields with a tab
 -n  Sort by number of pages instead of by user or printer
 -L  Specify the log file
 -h  Print this help message and exit

  e.g.
pracct -u -i $USER

This will show both pages and sheets usage.  Sample output:

 User  Sheets  Percent   Pages  Percent
   --  ---  --  ---
 aban 1520.3   1520.2
 abhijit  4000.9   6800.9
 achatham  270.1290.0
 ...
 Total: 4417972499

We also have a CGI script that will produce a Top 10 users web page...

This info will certainly require modifications for your site setup.
Bytheway, we're running lprng 3.7.4 and ifhp 3.4.4 .  YMMV.

Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA
Non cognosco. In hoc tantum laboro.


#!/usr/local/bin/perl
#  (#)  /auto/global/lprng/libexec/filters/SCCS/s.acc.pl  1.1  2001/02/02  13:21:23
#
# acc.pl, 11/2000, D.Singer
# derived from:
#
# Patrick Powell Sun Sep  3 11:23:22 PDT 1995
# LPRng
#= File:   =
#=   accounting.sh =
#= =
#= Synopsis:   = 
#This program is called at the completion of printing a job by the OF
#filter.  The accounting file will hold information about the
#completion of a job.  The accounting file will have the following
#format:
#
#start -qpid -kcontrolfile -nlogin -hhost -Pprinter \
# -ppagecounter -Fformt -Ttime
#end  -bpages -qpid -kcontrolfile -nlogin -hhost -Pprinter \
# -ppagecounter -Ffmt -Ttime
#
#The accounting program will be called with the following parameters
#
#program -bpages -qpid -kcontrolfile \
#   -nlogin -hhost -Pprinter -ppagecounter -Fformt '-Ttime' accoutingfile

#$file1 = /var/spool/lprng/PRINTER_ACCOUNTING_LOG;
$file1 = /var/spool/lpd/ACCT_LOG;
#$file2 = /auto/global/lprng/log/acct_log;
$file2 = /auto/global/lprng/log/acct_log;

$debugfile = /auto/global/lprng/log/acct_log.debug;
$debug = 0;

$pages = ;
$pid = ;
$controlfile = ;
$login = ;
$host = ;
$printer = ;
$pagecounter = ;
$format = ;
$time = ;
$accountingfile = ;
$mode = ;
$zoption = ;

foreach ( ARGV ) {
if (($mode eq ) and (/^start$/ or /^end$/)) {
$mode = $_;
}
elsif (/^-b/) {
$pages = substr($_,2) if ($pages eq );
}
elsif (/^-h/) {
if ($host eq ) {
$host = substr($_,2);
$host =~ s/\.cs\.duke\.edu$//;
}
}
elsif (/^-k/) {
$controlfile = substr($_,2) if ($controlfile eq );
}
elsif (/^-n/) {
$login = substr($_,2) if ($login eq

Re: LPRng: LPRng archive, how far back should it go

2002-04-02 Thread Daniel E Singer

On Tue, 2 Apr 2002, Patrick Powell wrote:

  I have just unearthed the LPRng archives, and discovered
  that it is about 900 Mbytes of LPRng related material.

What sort of stuff is in the archive?

  If I put this up on the regular LPRng FTP site, then I suspect
  that the mirror site folks will hate me,  especially if they
  need to download it all.
 
  Any suggestions?
 
  a)  Have a separate archive locations
  ftp://ftp.lprng.com/pub/LPRng.Archive
  b) 

Some sort of access would be nice for people who want it.  Some sites
might be running old versions, not be in a position to upgrade, and
need to pick up a fresh copy of the version they are running (for
example).

Mail list and newsgroup archives are always useful, going back ...
forever.

-Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA


-
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: printing to Canon iR600 Copier/Printer

2002-03-19 Thread Daniel E Singer

On Sun, 10 Mar 2002, Patrick Powell wrote:

  Summary:
 
  You cannot do it with the LPD spooler as the spooler does not
  report status.
 
  Sorry about that.
 
  You might be able to do it by running an SNMP query to the printer after the
  job is done.
 
  Note that I have a hack for this right now...
 
pagecount=|/run_snmp_query_to_get_page_count
 
  and this script has some some of the most
 HORRIBLE stuff you have ever seen.
 
  Blame Jim Trocki at Transmeta ([EMAIL PROTECTED]) for it.
 
  Of course you will need the SNMP support modules, etc. etc. to run
  the SNMP query.  I am having a devil of a time trying to package
  it up so you get everything installed correctly...

Thank you.  But you seem to be addressing only the page accounting
issue, which we don't really care about (it's very low on the priority
list in this case).

The issue is that we want to send jobs to our LPRNG server, have the
jobs processed, translated, formatted, etc., then sent (bounced) to
the LPD (port 515) on the Canon copier/printer to be printed.  Right
now the jobs are not properly transferred to the Canon.  We get
printouts that show PJL and raw Postscript.  The Canon has been
configured to accept both PCL and Postscript jobs.

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA


-
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: XeroxN2125 and pagecount (2)

2002-03-14 Thread Daniel E Singer

On Thu, 14 Mar 2002, Johan Bengtsson wrote:

  We have similar problems with our Lexmark Optras. I have contacted Lexmark
  support in Sweden but I'm not optimistic, response will probably be
  something like above. Maybe there should be a printer Hall of Shame on
  the lprng web page to put the spotlight on this problem? Or maybe (more
  positively) a printer Hall of Fame for those printers that actually
  behave like they should. Maybe we could try to create some publicity
  around this problem? Write something to slashdot?

I think this is a wonderful idea.  But I don't think we can expect
Patrick to host it or run it, because this could erode his
relationships with various printer vendors.  I think this would need
to be hosted elsewhere, some site that does not have such commercial
relationships to worry about.  Maybe such a site could have its own
domain name, like www.printertalk.org .  (And for curiousity I just
checked, and printertalk.com is already taken!)

-Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA
Non cognosco. In hoc tantum laboro.


-
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: printing to Canon iR600 Copier/Printer

2002-03-06 Thread Daniel E. Singer

On Tue, 5 Mar 2002, Patrick Powell wrote:

  Find the port that the copier listens on for TCP/IP stuff.
  It's documented somewhere.
 
  Say its port 9100.
 
  Then use the printcap:
 
  lp:
:lp=ip.address%9100

 
 
  and LPRng will open a connection to the port.

Thank you very much for your response.  As I mentioned in my original
post (below), the copier/printer runs an internal LPD spooler, so it
listens on port 515 and only accepts jobs this way.

If I send a job directly to the printer with:

lpr -Pprint@pr167 file.ps

it will print.  But we would like to take advantage of LPRng's
filtering and job translation capabilities.  Therefore, we would like
to send the job to the LPRng print server, have the job processed,
then sent on to the LPD spooler on the copier/printer.

I'm reading thru docs., and trying different things, but so far it's
not working.  Sometimes I get printed PJL and Postscript.  Sometimes
it seems to queue and process, but nothing comes out.  Bytheway, the
Canon copier/printer supports jobs in PCL and Postscript.

Should I send more info, such as printcap and lpq output?  If this
gets working, I promise I'll send the config info back to the list!

   We have a Solaris-8 print server, all of our Unix boxes forward print
   jobs to the server for processing, and PC's print to the print server
   via Samba.  Most of our printers are HP's with network cards.
  
   The Canon runs its own lpd server, so I can send a print job (eg,
   Postscript) directly to the Canon:
  
  lpr -Pprint@canon test.ps
  
   This works, but we'd like to have the print jobs go thru the LPRng
   print server, especially for processing of non-PS job files (to get
   that automatic a2ps processing, etc.), and to get option selection
   processing like duplex, staple, etc.  I assume this requires somehow
   setting up the printcap and ifhp.conf so that these jobs get forwarded
   to the LPRng server, get processed, then get forwarded to the lpd on
   the Canon.
  
   Any suggestions how to set this up?  Would this process be simplified
   if we went thru the overhead of upgrading to the latest LPRng/ifhp
   versions?  Anyone been thru this?
  
   We're running:
  
  LPRng-3.7.4
  ifhp-3.4.4
  Solaris-8
  
   Thanks.
  
   Dan
  
   PS:  I know that this is probably in the docs. somewhere, but
   generally it's taken me a long time to find what I need.  Newer
   versions of the docs. might be improved, but I'm worried about
   backwards compatibility.
  
   PPS:  I assume that page counts are out of the question?  :-/

Thanks.

-Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA
Non cognosco. In hoc tantum laboro.


-
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: printing to Canon iR600 Copier/Printer

2002-03-06 Thread Daniel E. Singer

Here's a bit more refinement on this problem.  At this point, I can do
the following:

lpr -Pprint@pr167 t.ps  # print directly to LPD on the printer

this works, and the document is properly rendered.  Or,

lpr -Pcanon t.ps# print to LPRng LPD w/ bounce queue

gets to the Canon copier/printer, but Postscript source prints out. :(

Here's what the printcap entries look like at this point:

# Canon iR600
pr167|canon|canon-sx|canon-dx|canon-mf
:client
#:qq
#:lp=%Q@printserver
:lp=%P@printserver

pr167|canon|canon-sx|canon-dx|canon-mf
:server
:cm=Cannon_iR600_copier_2nd_floor_LSRC_D
:tc=.canon

.canon
:sh
:lpd_bounce
#: use_queuename=%P
#:lp=%P@printserver
:rp=print
:rm=pr167
:bk
#:bq=print@%P
:bq=print@pr167
:translate_format=f
:mx#0
#:rw
#:qq
:create_files
:ps=status
:af=acct
:lf=log
:spool_lock_file=lock.%P
:max_status_size=1024
:min_status_size=512
:max_log_file_size=1024
:min_log_file_size=512
:pl#66
:pw#80
:sd=/var/spool/lpd/%P
#:as=|/auto/global/lprng/libexec/filters/accounting.pl start
#:ae=|/auto/global/lprng/libexec/filters/accounting.pl end
#:accounting=|/auto/global/lprng/libexec/filters/acc.pl
:filter=/auto/global/lprng/libexec/filters/csif
#:of=/auto/global/lprng/libexec/filters/csof
#:bp=/auto/global/lprng/libexec/filters/csbanner
:ifhp=model=postscript
#:ifhp=model=postscript,of_options=pagecount waitend 
accounting=/auto/global/lprng/libexec/filters/acc.pl

I've tried various permutations of the 'translate_format' item,
including leaving it out all together, but haven't noticed any effect.
I am doing lpc reread after modifications to the printcap file.

Note that if I do not use:

:rp=print
:rm=pr167

in addition to the :bq entry, I get an error about a missing
lp_device value.

Apparently I need some further tweaks to the 'bounce queue' paradigm
in use here.  Any suggestions?

(lprng-3.7.4, ifhp-3.4.4, solaris-8)


On Wed, 6 Mar 2002, Daniel E. Singer wrote:

  On Tue, 5 Mar 2002, Patrick Powell wrote:
 
Find the port that the copier listens on for TCP/IP stuff.
It's documented somewhere.
   
Say its port 9100.
   
Then use the printcap:
   
lp:
  :lp=ip.address%9100
  
   
   
and LPRng will open a connection to the port.
 
  Thank you very much for your response.  As I mentioned in my original
  post (below), the copier/printer runs an internal LPD spooler, so it
  listens on port 515 and only accepts jobs this way.
 
  If I send a job directly to the printer with:
 
   lpr -Pprint@pr167 file.ps
 
  it will print.  But we would like to take advantage of LPRng's
  filtering and job translation capabilities.  Therefore, we would like
  to send the job to the LPRng print server, have the job processed,
  then sent on to the LPD spooler on the copier/printer.
 
  I'm reading thru docs., and trying different things, but so far it's
  not working.  Sometimes I get printed PJL and Postscript.  Sometimes
  it seems to queue and process, but nothing comes out.  Bytheway, the
  Canon copier/printer supports jobs in PCL and Postscript.
 
  Should I send more info, such as printcap and lpq output?  If this
  gets working, I promise I'll send the config info back to the list!
 
 We have a Solaris-8 print server, all of our Unix boxes forward print
 jobs to the server for processing, and PC's print to the print server
 via Samba.  Most of our printers are HP's with network cards.

 The Canon runs its own lpd server, so I can send a print job (eg,
 Postscript) directly to the Canon:

 lpr -Pprint@canon test.ps

 This works, but we'd like to have the print jobs go thru the LPRng
 print server, especially for processing of non-PS job files (to get
 that automatic a2ps processing, etc.), and to get option selection
 processing like duplex, staple, etc.  I assume this requires somehow
 setting up the printcap and ifhp.conf so that these jobs get forwarded
 to the LPRng server, get processed, then get forwarded to the lpd on
 the Canon.

 Any suggestions how to set this up?  Would this process be simplified
 if we went thru the overhead of upgrading to the latest LPRng/ifhp
 versions?  Anyone been thru this?

 We're running:

 LPRng-3.7.4
 ifhp-3.4.4
 Solaris-8

 Thanks.

 Dan

 PS:  I know that this is probably in the docs. somewhere, but
 generally it's taken me a long time to find what I need.  Newer
 versions of the docs. might be improved, but I'm worried about
 backwards compatibility.

 PPS:  I assume that page counts are out

LPRng: printing to Canon iR600 Copier/Printer

2002-03-04 Thread Daniel E. Singer

I'm trying to figure out how to get LPRng to filter print jobs and
process and pass options to a Canon iR600 copier/printer.

We have a Solaris-8 print server, all of our Unix boxes forward print
jobs to the server for processing, and PC's print to the print server
via Samba.  Most of our printers are HP's with network cards.

The Canon runs its own lpd server, so I can send a print job (eg,
Postscript) directly to the Canon:

lpr -Pprint@canon test.ps

This works, but we'd like to have the print jobs go thru the LPRng
print server, especially for processing of non-PS job files (to get
that automatic a2ps processing, etc.), and to get option selection
processing like duplex, staple, etc.  I assume this requires somehow
setting up the printcap and ifhp.conf so that these jobs get forwarded
to the LPRng server, get processed, then get forwarded to the lpd on
the Canon.

Any suggestions how to set this up?  Would this process be simplified
if we went thru the overhead of upgrading to the latest LPRng/ifhp
versions?  Anyone been thru this?

We're running:

LPRng-3.7.4
ifhp-3.4.4
Solaris-8

Thanks.

Dan

PS:  I know that this is probably in the docs. somewhere, but
generally it's taken me a long time to find what I need.  Newer
versions of the docs. might be improved, but I'm worried about
backwards compatibility.

PPS:  I assume that page counts are out of the question?  :-/

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA
Non cognosco. In hoc tantum laboro.


-
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: Keeping 'done' jobs around

2001-11-29 Thread Daniel E. Singer

On Wed, 28 Nov 2001, Andrew Morgan wrote:

   The problem here is that most folks just want to do 'lpq'
   and see:
  
   Printer: lp@h110
Queue: no printable jobs in queue
Status: job 'cfA378h110.private' removed at 10:14:10.933
Filter_status: done at 10:14:10.913
Rank   Owner/ID  Class Job Files Size Time
   done   papowell@h110+507A   507 /tmp/hi  3 17:04:23
  
   Notice that the 'done' shows the job ID and other stuff.
 
  Okay, that does seem pretty cool.  Like you say though, it would probably
  screw up samba.  :)

Maybe, then, this could be an lpq *option*, instead of default output?
Or there could be an option to *not* get this in the output?

-Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA


-
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: accounting not working in latest version?

2001-10-19 Thread Daniel E. Singer

On Thu, 18 Oct 2001, James Neal wrote:

  After further testing, I found that it was being called twice; once at the
  start of the job and once after it; and the one after the job had the two
  -bs. Also the page count -b argument has been correct so far every time
  I've seen it. I've got my accounting scripts modified to work now, things
  are peachy for me.
 
  I'd like to thank Mr. Singer for his very helpful observations and advice.

You're welcome.  But again, I think we're working around a bug in how
the lprng code calls the accounting script.  So at some point if the
bug gets fixed, we'll have to watch out that our work-arounds don't
break!  Glad you were able to get it working.

-Dan (`been there, done that':)

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA


-
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: accounting not working in latest version?

2001-10-18 Thread Daniel E. Singer

On Wed, 17 Oct 2001, James Neal wrote:

  That's not what I see here. I only see one -b argument (the byte count
  one). What versions of LPRng and ifhp are you running? (I'm doing LPRng
  3.7.9 and ifhp 3.4.7 on a Solaris 8 box.)

We're using lprng 3.7.4 and ifhp 3.4.4.

  Here's an example of the arguments it -is- passing me, in case someone
  here finds them more enlightening than I do:
 
  fileend -b9 -T273 -q12737 -p11643 -t2001-10-17-19:22:01.514
  ^
  -Ajrand@knight+201 -njrand -Plwdog -Ajrand@knight+201 -CA -Ff
  -Hknight.cat.pdx.edu -Jptest -Ljrand -Nptest -Plwdog -Qlwdog
  -Taccounting=/disk/doom/print/local/ahist -aacct -b77
   ^^
  -d/disk/doom/print/spool/lwdog -edfA201knight.cat.pdx.edu -fptest
  -hknight.cat.pdx.edu -j201 -kcfA201knight.cat.pdx.edu -l66 -njrand
  -sstatus -t2001-10-17-19:17:28.000 -w80 -x0 -y0

Well I see two -b's!  I'm not sure what they mean, though.  How many
pages and how many bytes was this job?  Postscript or something else?

-Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA


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

2001-09-20 Thread Daniel E. Singer

On Wed, 19 Sep 2001, Ryan Novosielski wrote:

  The place to download 'file' hath gone away, ftp://ftp.astron.com/pub/file.
  Any suggestions?

Whois info:

ASTRON (ASTRON-DOM)
   235 W 48TH ST APT 22A
   NEW YORK, NY 10036-1426
  ^^
   US

   Domain Name: ASTRON.COM

   Administrative Contact, Billing Contact:
  Zoulas, Christos  (CZ19)  [EMAIL PROTECTED]
  ASTRON
  235 West 48th Street #22A
  New York, NY 10036
  (212) 246-2344
   Technical Contact:
  GW-DNS  (GW-DNS-ORG)  [EMAIL PROTECTED]
  Global Wire Oy
  180 BROAD ST APT 1435
  STAMFORD, CT 06901-2081
  US
  (212) 699-4461
  Fax- (212) 699-4461

Maybe they're experiencing technical difficulty?

I've dropped a copy of version 3.32 in:

ftp://ftp.cs.duke.edu/pub/des/misc/file-3.32.tar.gz

No idea what the current version is, this one is from about a year
ago.

-Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA


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

2001-04-15 Thread Daniel E. Singer

On Sun, 15 Apr 2001, Gene C. wrote:

  On another note, is there a "ps" or "pdf" version of the HOWTO?  While html
  is fine, document as large as these HOWTO's need to be printed.

Here's a note that I made about a good way to print out the HOWTO
files:

  To print out the HOWTO docs for LPRng and IFHP, use Netscape to print
  the HTML doc to a PostScript file, eg, t.ps, then run something like:

mpage -2oS -m20 -M-20 -P- t.ps | lpr -h

mpage is a public domain package for reformatting postscript.  If you
don't have it, you can probably locate it with a web search.

-Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA
[EMAIL PROTECTED], www.cs.duke.edu/~des, (919)660-6577


-
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 on Solaris 8

2001-03-16 Thread Daniel E. Singer

On Fri, 16 Mar 2001, Phil Moses wrote:

  Thanks for the help, now I am wondering what is the easiest way to go
  around gdbm? Any suggestions?

Just use "--disable-gdbm" with the configure script.  At least, that's
all we needed.  If you want to replace GDBM with something else, I
can't help you there.

-Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA
[EMAIL PROTECTED], www.cs.duke.edu/~des, (919)660-6577


-
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 on Solaris 8

2001-03-15 Thread Daniel E. Singer

On Thu, 15 Mar 2001, Phil Moses wrote:

  I am wondering if anyone can add their insight to this.
  I am testing a few things with LPRng and the end goal is to use it in
  conjunction with netatalk to provide print services for Unix and Macintosh
  systems. Currently I am attempting to use Solaris 8 as my print server. I
  have compiled lprng and it has installed correctly but I am at a
  roadblock. When attempting to print, the job will spool but is then
  aborted, I can see an error such as the following:
  gdbm fatal: lseek error

I'm running lprng-3.7.4 on Solaris 8.  I had to disable the gdbm stuff
to get it to work.  I didn't spend much time with it, because it was
not important for our installation.  Our printing is probably very
light compared to a lot of sites.

-Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA
[EMAIL PROTECTED], www.cs.duke.edu/~des, (919)660-6577


-
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: Giving something back (scripts, etc)

2001-02-13 Thread Daniel E. Singer

On Mon, 12 Feb 2001, Robert Fausey wrote:

  I also am about to rebuild our print server and there were two things I
  noticed about ifhp.  If a user prints from a windows computer the driver
  generates PJL code which ifhp rejects.  In windows I printed to a file and
  but when I print this file thru ifhp the only output is the banner page.
  However if I print directly to the printer using lpr -Praw@printer I get
  the correct output.

We print through Samba for PC's.  Don't know if that is what you need
or not.  Or maybe it's a problem with driver settings.  I'm not a PC
person, so probably can't provide any additional help on this.

  I have been testing LPRng under both RedHat Linux 7 and Solaris
  8 and found that a2ps functions differently on the two systems.
  Under Linux troff files are converted to man page readable
  format, but under Solaris the troff file is wrapped in
  postscript and printed.

I just ran "lpr -P127-dx ./pb.1" on Solaris 8, and it printed out a
formatted man page just fine.  Maybe some problem with how
`file_output_match' in ifhp.conf is set up.

We did have a couple of problems with a2ps.  One is that dvi2ps was
not handled correctly, so a wrapper was needed for this (attached in
previous mail).  Also, pdf's left large files in /tmp (apparently more
of an acroread problem), so again a wrapper was needed for that
special case (attached in previous mail).

I found that installing lprng and ifhp took a lot of trial and error,
and is perhaps more of an art than a craft.  :-(-:

-Dan

-- 
Daniel E. Singer, System Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA


-
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: Support for SPARCprinter E ?

2000-10-27 Thread Daniel E. Singer

I'm wondering if LPRng supports the Sun "SPARCprinter E", which I
believe is made by Lexmark.

If it is supported, or if it works well with one of the current ifhp
printer model settings, which one is it?  And could it be added to the
documentation?

If it is not supported, then what should I do to add support?  What
information is needed?

Thanks!

Dan

-- 
Daniel E. Singer, Systems Administrator
Dept. of Computer Science, Duke University, Durham NC 27708 USA
[EMAIL PROTECTED], www.cs.duke.edu/~des, (919)660-6577


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