Re: LPRng: lengthy delay between one job finishing and another one starting

2003-12-15 Thread Toby Blake
 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


-
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: Hp Laserjet 9000dn

2003-12-15 Thread Rabellino Sergio
Dear list,
 there is anyone using an Hp9000 around the list ?
I've added simply the descriptor to the hp8xxx description in ifhp.conf, so I can print, but i'm getting strange page 
counting.
Any hints  ?

Thanks.
--
Dott. Sergio Rabellino
 Technical Staff
 Department of Computer Science
 University of Torino (Italy)
http://www.di.unito.it/~rabser
Tel. +39-0116706701
Fax. +39-011751603
-
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: Hp Laserjet 9000dn

2003-12-15 Thread Margrit Lottmann
On Mon, 15 Dec 2003, Rabellino Sergio wrote:

 Dear list,
   there is anyone using an Hp9000 around the list ?
 I've added simply the descriptor to the hp8xxx description in ifhp.conf, so I can 
 print, but i'm getting strange page 
 counting.
 Any hints  ?
 
 Thanks.
 -- 
 Dott. Sergio Rabellino
 
We're also using an Hp9000!!!

...with ifhp-3.5.10-4100fix (new: pjl_waitend_byjobname)

Attempts with a newer ifhp-version (ifhp-3.5.12) don't work correctly.

We're also using an easy income_control_filter to resolve problems with
bad jobnames (Jobnames with commas in the string)...if You need I can
help You!

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

2003-12-15 Thread William C Beegle
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.  :-)

-
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-15 Thread David L. R. Houston
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



-
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: user quota mess up..

2003-12-15 Thread James.Q.L
Hi,

In the accounting process, i notice that one user quota being assigned to another user. i am using the accounting.pl that comes with LPRng with some change. 

as acct shows, there are two jobs logs and they are mixed up together.
i.e the job from alexeev shows up before user 'smiles' finish his job.later user 'smiles' finish his job first.
i think that causes my problem. because inthe accounting.pl, i assume i am dealing with one user at a time and get their quota,printed pages then update the quota database. now when two jobs mixed up, i may end up updating one user quota for another .. 

following is the acct log and the part i do accounting in the accounting.pl.
can you give me some suggestion as i am not sure how do i deal with this case..

START '[EMAIL PROTECTED]' 'P=printer4' 'n=smiles' 'H=130.63.230.132' 'D=1071447451'filestart '-q20472' '-p356696' '-t2003-12-14-19:17:32.373' '[EMAIL PROTECTED]' '-nsmiles' '-Pprinter4'START '[EMAIL PROTECTED]' 'P=printer4' 'n=alexeev' 'H=130.63.230.132' 'D=1071468880'filestart '-q21170' '-p356749' '-t2003-12-15-01:14:41.893' '[EMAIL PROTECTED]' '-nalexeev' '-Pprinter4'fileend '-b4' '-T54' '-q21170' '-p356753' '-t2003-12-15-01:15:34.576' '[EMAIL PROTECTED]' '-nalexeev' '-Pprinter4'END 't=21429' 'p=53' 's=356696' 'q=356749' 'D=1071468880' '[EMAIL PROTECTED]' 'P=printer4' 'n=smiles' 'H=130.63.230.132' 'S=1071447451'END 't=55' 'p=4' 's=356749' 'q=356753' 'D=1071468935' '[EMAIL PROTECTED]' 'P=printer4' 'n=alexeev' 'H=130.63.230.132' 'S=1071468880'

here is what i have in the accounting.pl .
the part after ## update db ## is my change. 

for( my $i = @stack -1; $i = 0 ; --$i ){ $_ = $stack[$i]; print STDERR "stack [$i] '$_'\n" if $debug; if( /^[a-z]*end .*-p(\d+)/ ){ $end_counter = $1; } elsif( /^[a-z]*start .*-p(\d+)/ ){ $start_counter = $1; } elsif( /^START/ ){ # we now update the accounting information ($start_time) = /D=(\d+)/; s/D=(\d+)/S=$1/; $count = $end_counter - $start_counter; $elapsed = $time - $start_time; # you should put your make update record stuff here s/^START/END
 't=$elapsed' 'p=$count' 's=$start_counter' 'q=$end_counter' 'D=$time'/; $out = $_ . "\n" . $out; $end_counter = $start_counter; $time = $start_time;
 handle_error("Printing Halted.") if ($count=~/-/);
 ###@@ ## update db ###@@ connect_db(); $pages = check_page_count(); $remain = $pages-$count; ## inform user s/he has no print quota left. unless ($remain)
 { my $msg = "Your Print Quota is 0 now"; `$rmssh $uname $msg`; } update_db($remain); ## @@ write job.history write_history(''); $dbh-disconnect() if $dbh; }}

Post your free ad now! Yahoo! Canada Personals

LPRng: a bit off topic, but just a bit

2003-12-15 Thread David Bear
I would like to put my printers on a private lan -- ie non-routed ip
addresses.  Then using lprng running on bsd spool jobs to them.  While
getting lprng to work doesn't present a challenge, I would like to be
able to use the web management interfaces on these printers.

So, I was thinking of some kind of proxy web server that I could also
run along with lprng.  The idea would be to rewrite incoming requests
to lpserver.asu.edu/hp8100 to 192.168.10.10:80 and proxy them thru.

I admit, this sound rather strange... but since we cannot really
control our network here, I thought I would at least control the
network in our rooms where our servers are.

any comments form experience would be appreciated..

thanks.
-- 
David Bear
phone:  480-965-8257
fax:480-965-9189
College of Public Programs/ASU
Wilson Hall 232
Tempe, AZ 85287-0803
 Beware the IP portfolio, everyone will be suspect of trespassing

-
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: Question on getting real host name. please help.

2003-12-15 Thread Phillip Stark
At 9:13 AM -0500 12/12/03, Rick Cochran wrote:


Unfortunately, winPopup is a DOS magnet.  I don't think that a 
firewall can help because winPopup uses the same protocol as file 
and print sharing so you would be blocking other functions too.  But 
perhaps I'm wrong about this.

There are other messaging services (eg. Jabber).  Has anyone used one of them?

I wrote up a couple of perl scripts (a client and a server) to deal 
with sending printing error dialogs to users.  Please email me 
directly if you're interested; I'd be happy to share.

Features:

- Daemon can run (and therefore display messages on) Windows and Mac 
OS X.  Support for Solaris (and probably any Unix with GTK libraries 
installed) is planned real soon now, when I get some time.

- You can specify a number of params for the message, including the 
dialog title, # of times to beep, icon for the dialog.

- You can specify a timeout for sending messages (very useful when 
you are calling this from an lprng filter script and don't want 
network oddities to delay the print queue).

- The daemon will only accept messages from machines on an allowed hosts list.

Limitations:

- You can only send messages from a Unix machine.

- You need to have perl and the daemon installed on all workstations 
you want to message.

Basic Installation

- Populate the allowed host list in the daemon code.

- On each workstation, install the Win32::OLE perl module (Windows only)

- On each workstation, install and configure the daemon to run when a 
user logs in.

- Send messages.

Phillip
--
*
Phillip Stark
Instructional Computing Lab Operations Manager
University of California, Santa Cruz
Got a question?  Get an answer:  http://ic.ucsc.edu/help
*
-
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: Hello.

2003-12-15 Thread James Richard Tyrer
Patrick Powell wrote:

Right.  I am working on the following:

a) a configuration file for 'communication'
   This would be REALLY short.
b) PPD files (yech) for format and option control.

Now you have the problem of relating the PPD file to the format/option

Each printer would have a PPD file a la LinuxPrinting.org.

You would have a smaller set of stuff for 'communication' support,
which is really all that IFHP would need.
You could even be brutal and put the IFHP configuration in a PPD file entry.

This is currently in the works,  and I have already done most of the leg
work for the PPD file.  See Foomatic-RIP.
Sounds good.  My suggestion is that you do not mess up the PPD file with information for 
the GhostScript (or other) driver like Foomatic does -- the PPD should only contain 
information that an application (or middleware widget) using the printer needs -- the 
information which the driver for the printer needs should be in a configuration file.

Then for many simple printers you could have a program which generates a PPD file with the 
relevant information:

Printer name
Default resolution
Resolutions supported
Default paper size
Paper sizes supported
Printable area for Paper sizes supported
Like what you get from editing a generic PPD by hand.

And perhaps very simple additional things like paper bin numbers.

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