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: 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: problem apparently with PJL?

2004-03-02 Thread Rainer Stahl
Dave Lovelace wrote:

Hi Dave,

So it sure looks as though these printers aren't responding to PJL, and
so ifhp thinks that it needs to wait  retry, endlessly.  I don't see
anything in the printers' configuration that would address this.  Does
anyone have any suggestions?
Thanks ...

 

I'm not into HP LJ4, but if it really can't handle PJL, ifhp.conf is 
probably
your place.
You mentioned that you tried stopping the PJL querying. What did you 
already try?

First thing:
Did you give ifhp an idea of the model to use? For us, it looks like this
in the printcap (often found in /etc/printcap):
__
sw1|i08pr_sw1|studpr_sw1

:lp=i08pr-sw1.atis-stud.uni-karlsruhe.de%9100
:cm=Studipool HP 8150 DN
:ifhp=model=hp8150,status
.
__
For you ifhp=model=hp4 would be right. Another try would be to disable 
status-queries
in general:
ifhp=model=hp4,status@

If it really is a PJL-problem, you can look into ifhp.conf for the 
following:
__
#--- START language setup
## default is to turn everything on
## We assume that we have PostScript, PJL, PCL, and text 
support
## Text is just PCL without any control sequences
##

pjl
pcl
ps
text
___
and change pjl to pjl@. That disables PJL as a valid language.
I never tried this, but thats what the options intenionally have been 
made for, I guess :-))
There are also quite a few options for fine-tuning the query of the 
printers in ifhp.conf.

But it's anyway strange, as the HP4 is considered PJL-capable in the 
ifhp.conf.
[i would wonder why not, because it's probably an invention of HP :-) ]

Furthermore, i'm not sure if the concept of LPRng works fine without having
any idea of the printers status.
Good luck!

regards,
Rainer
--
Rainer Stahl EMail: [EMAIL PROTECTED]
Department of computer science
Abt. Technische Infrastruktur (ATIS)
University of Karlsruhe, Germany @work: +49 721 608-3935 or -2749
-
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: Problem with routing scripts

2003-12-29 Thread Tim Mooney
In regard to: LPRng: Problem with routing scripts, Jeremy Baumgartner said...:

We want to have multiple input queues which get fed into a single
routing queue.

Hmmm, we're using a router queue as the front line queue, rather than
as a secondary queue.  I wonder if that's why you're seeing problems?

There are some things you can try:

- Have you enabled heavy debugging, and waded through what gets logged?
- Have you verified that sending jobs directly to the cae-170-gang works?
- Is the cae-170-router queue up and enabled?
- Does checkpc report any problems?
- Some of the settings in your .common entry are off the beaten path.
  Have you tried it with a stripped down .common entry?

- What does

lpc printcap cae-170-router

  report?  Is it successfully reporting the printcap settings you would
  expect?


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

Do they just sit in the queue?  What happens if you start the queue with
them sitting in there?  Anything logged?  Is there a `status' file for
the queue, and if so what's in it?

What version of LPRng?

Tim
-- 
Tim Mooney  [EMAIL PROTECTED]
Information Technology Services (701) 231-1076 (Voice)
Room 242-J6, IACC Building  (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164

-
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

2003-12-29 Thread Jeremy Baumgartner
 - Have you enabled heavy debugging, and waded through what gets
 logged?

Yes, and it says that it's setting the router to
/opt/printserver/CAE/router, but I never see it try to run it.

 - Have you verified that sending jobs directly to the
 cae-170-gang works?

Yes, direct printing to cae-170-gang works fine.

 - Is the cae-170-router queue up and enabled?

Yes and yes.

 - Does checkpc report any problems?

Nope.

 - Some of the settings in your .common entry are off the beaten path.
   Have you tried it with a stripped down .common entry?

Yes, and I've rewritten the printcap to not use :tc= options, just in
case.  No difference.

I don't think I clearly stated my problem, either.  The jobs enter
cae-170-router, and lpq lists them as 'done' without ever moving them to
another queue.  I have changed my printcap, but I still get the exact
same effect.

My version of lprng is 3.8.21, compiled myself (not prepackaged with a
linux distro).

New stripped down printcap:
--snip--
cae-170-router|lp
:router=/opt/printserver/CAE/router
:destinations=cae-170-gang,cae-170-printer-1
:sd=/var/spool/lpd/%P
:queue_lock_file=/var/spool/lpd/%P/%P.lock
:lp=/dev/null

cae-170-gang
:sv=cae-170-printer-1,cae-170-printer-2,cae-170-printer-3
:sd=/var/spool/lpd/%P
:queue_lock_file=/var/spool/lpd/%P/%P.lock

cae-170-printer-1
:lp=/dev/null
:ah
:sd=/var/spool/lpd/%P
:queue_lock_file=/var/spool/lpd/%P/%P.lock

cae-170-printer-2
:lp=/dev/null
:ah
:sd=/var/spool/lpd/%P
:queue_lock_file=/var/spool/lpd/%P/%P.lock

cae-170-printer-3
:lp=/dev/null
:ah
:sd=/var/spool/lpd/%P
:queue_lock_file=/var/spool/lpd/%P/%P.lock
--snip--

--
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 'file'

2003-06-30 Thread Villy Kruse
On Thu, 26 Jun 2003, Matt Forrest wrote:

 Date: Thu, 26 Jun 2003 12:07:11 -0400 (EDT)
 From: Matt Forrest [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: LPRng: Problem with 'file'

 Any hex editor would work but since you've mentioned vi, I feel
 obligated to tell you I looked at it using emacs.

 emacs is your friend - let the holy wars begin!!! :)

 hm I just loaded it up in vi and it also shows the nulls...
 I'm on a RH 7.3 box right now so it's actually vim.

 yeah... on solaris vi screws it up.  less works fine though.


Like any real vi does.  The vim that comes with RedHat and several
other linux distributions is not real vi and one of the improvements
is to display NUL characters as ^@ rather than removing them.  vim also
have the -b option for editing or displaying a binary file.  Also if you
have vim you also have xxd for hexadecimal display.

Villy


-
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 'file'

2003-06-26 Thread Villy Kruse
On Wed, 25 Jun 2003, Ryan Novosielski wrote:

 Date: Wed, 25 Jun 2003 10:23:54 -0400 (EDT)
 From: Ryan Novosielski [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: LPRng: Problem with 'file'

 Treating it as data is fine with me -- however, when file can't figure out
 what it is, there is a problem, as I do check for file type with ifhp and
 it will refuse unrecognized file types.


In my setup I would route anything comming from a MS-Win system to a printer
queue which have no filter what so ever, and leave the filtering entries to
be used by unix users.



 As you can see from the files below, vi appears to have halved the
 contents of the file -- I'm assuming that the file after vi is done is no
 longer usable. Perhaps this question is now becoming one that is more for
 the file mailing list, but I had said that I would post the files in
 question regardless. The curious thing is that file, AFAIK, looks at the
 beginning of a file. vi would not likely be changing the beginning of the
 first line of the file that signals PCL data, so it doesn't make sense
 that it would have an effect on that (not to me, anyway). Also interesting
 is that this printer doesn't seem to use PJL prior to its PCL stream,
 which is odd from my experience. Here is the URL:

 http://www.umdnj.edu/~novosirj/PCL-data-problem




Hexadecimal dump of the two files.  The dump is incomplete, just enough
to get the point.

The file /var/tmp/xxx/Job927-df-data.prn had 1200 bytes of leading binary
zeroes.  Also note the data at 00500: in the data.prn file and compare with
the data at position 0050: in the PCL.prn file.


::
/var/tmp/xxx/Job927-df-PCL.prn.hex
::
:  1b 25 2d 31  32 33 34 35   58 40 50 4a  4c 20 4a 4f  [EMAIL PROTECTED] JO
0010:  42 20 4e 41  4d 45 3d 22   33 65 66 38  36 39 33 30  B NAME=3ef86930
0020:  31 34 38 31  6e 6f 76 6f   73 69 72 6a  22 0a 40 50  1481novosirj[EMAIL 
PROTECTED]
0030:  4a 4c 20 45  4e 54 45 52   20 4c 41 4e  47 55 41 47  JL ENTER LANGUAG
0040:  45 3d 50 43  4c 33 47 55   49 0a 1b 2a  6f 35 57 04  E=PCL3GUI..*o5W.
0050:  09 1b 2a 6f  35 57 04 0d   0d 84 1b 2a  6f 35 57 0a  ..*o5W.*o5W.
0060:  05 1b 26 6c  37 48 1b 26   6c 30 4d 1b  2a 6f 37 57  ..l7H.l0M.*o7W
0070:  08 09 07 01  01 1b 26 6c   32 41 1b 26  6c 2d 32 48  ..l2A.l-2H
0080:  1b 2a 6f 35  57 0a 01 1b   2a 6f 35 57  07 08 02 1b  .*o5W...*o5W
0090:  2a 6f 30 4d  1b 26 75 33   30 30 44 1b  2a 70 30 58  *o0M.u300D.*p0X
00a0:  1b 2a 70 33  35 59 1b 2a   67 32 36 57  02 04 01 2c  .*p35Y.*g26W...,

::
/var/tmp/xxx/Job927-df-data.prn.hex
::
  Same
04b0:  1b 25 2d 31  32 33 34 35   58 40 50 4a  4c 20 4a 4f  [EMAIL PROTECTED] JO
04c0:  42 20 4e 41  4d 45 3d 22   33 65 66 38  36 39 33 30  B NAME=3ef86930
04d0:  31 34 38 31  6e 6f 76 6f   73 69 72 6a  22 0a 40 50  1481novosirj[EMAIL 
PROTECTED]
04e0:  4a 4c 20 45  4e 54 45 52   20 4c 41 4e  47 55 41 47  JL ENTER LANGUAG
04f0:  45 3d 50 43  4c 33 47 55   49 0a 1b 2a  6f 35 57 04  E=PCL3GUI..*o5W.
0500:  09 00 00 00  1b 2a 6f 35   57 04 0d 00  0d 84 1b 2a  .*o5W..*
0510:  6f 35 57 0a  05 00 00 00   1b 26 6c 37  48 1b 26 6c  o5W..l7H.l
0520:  30 4d 1b 2a  6f 37 57 08   09 00 00 07  01 01 1b 26  0M.*o7W
0530:  6c 32 41 1b  26 6c 2d 32   48 1b 2a 6f  35 57 0a 01  l2A.l-2H.*o5W..
0540:  00 00 00 1b  2a 6f 35 57   07 08 00 00  02 1b 2a 6f  *o5W..*o
0550:  30 4d 1b 26  75 33 30 30   44 1b 2a 70  30 58 1b 2a  0M.u300D.*p0X.*
0560:  70 33 35 59  1b 2a 67 32   36 57 02 04  01 2c 01 2c  p35Y.*g26W...,.,



-- 
Villy


-
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 'file'

2003-06-26 Thread Sam Lown
On Wed, 2003-06-25 at 21:58, Matt Forrest wrote:
 The 1st 1200 bytes of the file are all zero (AKA 0x00) immediately after
 that you have the normal ESC code for some PJL stuff
 

I too confirmed this, there is something seriously wrong with one of
your drivers.

How did you generate this file? is it directly from windows i.e. Print
to file, or is it taken from a stopped queue on the server?

I am not surprised that 'file' is having problems! We too use the same
printer here, if you like I can try and find out the version of our
windows drivers (I'm a unix person ;-) as I know for a fact that we
don't get that 'crappy' stuff at the beginning of printouts.

cheers,

sam


 Try stripping off just those bytes or get
 http://www.scs.ryerson.ca/mforrest/printing/Job927-df-mf.prn
 
 
 In the -PCL- you don't have the ESC code to end the job.. shouldn't be a
 problem if the printer is set to auto personality, but I've always seen it
 there.  If you just strip the zeros from the start of the file I'm
 guessing it will work fine.
 
 I haven't tried printing it 'cause I'm lazy right now and don't want to
 have to walk to 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!!!  :}
 
 *
 
 
 
 
 -
 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.
 -
-- 
CERN, Geneva 
IT - Product Support - Unix Infrastructure
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.
-


Re: LPRng: Problem with 'file'

2003-06-26 Thread Jonathan Knight
 On Wed, 2003-06-25 at 21:58, Matt Forrest wrote:
 I too confirmed this, there is something seriously wrong with one of
 your drivers.


Can I put in a me too.  I found 600 null bytes on an HP driver for the
1200C.  I wrote a filter to rip off NULL's and then pass the result onto the
normal ifhp filter.

I found it was faster to write the filter than to telephone HP customer
support.

I don't seem to need it now so that driver at least has been fixed.



-- 
  __[EMAIL PROTECTED]Jonathan Knight,
/  Department of Computer Science
   / _   __ Telephone: +44 1782 583437 University of Keele, Keele,
(_/ (_) / / Fax  : +44 1782 713082 Staffordshire.  ST5 5BG.  U.K.

-
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 'file'

2003-06-26 Thread Dave Lovelace
Hmm.  Sorry, Ryan, I see that in my hurry late yesterday I got mixed up
as to which file was which.

I guess I'm with both whoever said that files from Windows boxes normally
should not be filtered at all on the print server, and with those who
said that the Windows print driver appears to be broken.  (But what does
happen if you send the Win job, with all those nulls, to the printer
in raw mode, with no filtering?)

-- 
- Dave Lovelace
  [EMAIL PROTECTED]
  [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: Problem with 'file'

2003-06-26 Thread Ryan Novosielski
How were you able to determine that? None of the programs I threw at it
seemed to be able to tell.

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

On Wed, 25 Jun 2003, Matt Forrest wrote:

 The 1st 1200 bytes of the file are all zero (AKA 0x00) immediately after
 that you have the normal ESC code for some PJL stuff

 Try stripping off just those bytes or get
 http://www.scs.ryerson.ca/mforrest/printing/Job927-df-mf.prn


 In the -PCL- you don't have the ESC code to end the job.. shouldn't be a
 problem if the printer is set to auto personality, but I've always seen it
 there.  If you just strip the zeros from the start of the file I'm
 guessing it will work fine.

 I haven't tried printing it 'cause I'm lazy right now and don't want to
 have to walk to 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!!!  :}

 *




 -
 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: Problem with 'file'

2003-06-26 Thread Dave Lovelace
Ryan Novosielski wrote:
 
 How were you able to determine that? None of the programs I threw at it
 seemed to be able to tell.
 

od -xv Job927-df-data.prn | less ... (or more if you don't have less)

This will show you your data in hex-dump format.  Each 00 is a null.

I think the x and v options will be accepted in
even ancient versions of od.  The GNU od has lots of other options you
may find helpful, if you've got it or something based on it.  man od ...
(Adding -c may either be helpful or make the output unreadable, depending.)

(Oh.  The -x is hex values, -v prevents it from omitting all the
identical lines.)

-- 
- Dave Lovelace
  [EMAIL PROTECTED]
  [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: Problem with 'file'

2003-06-26 Thread Matt Forrest
Any hex editor would work but since you've mentioned vi, I feel
obligated to tell you I looked at it using emacs.

emacs is your friend - let the holy wars begin!!! :)

hm I just loaded it up in vi and it also shows the nulls...
I'm on a RH 7.3 box right now so it's actually vim.

yeah... on solaris vi screws it up.  less works fine though.


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

*




-
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 'file'

2003-06-26 Thread Ryan Novosielski
Have you still got the filter?

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

On Thu, 26 Jun 2003, Jonathan Knight wrote:

  On Wed, 2003-06-25 at 21:58, Matt Forrest wrote:
  I too confirmed this, there is something seriously wrong with one of
  your drivers.


 Can I put in a me too.  I found 600 null bytes on an HP driver for the
 1200C.  I wrote a filter to rip off NULL's and then pass the result onto the
 normal ifhp filter.

 I found it was faster to write the filter than to telephone HP customer
 support.

 I don't seem to need it now so that driver at least has been fixed.



 --
   __[EMAIL PROTECTED]Jonathan Knight,
 /  Department of Computer Science
/ _   __ Telephone: +44 1782 583437 University of Keele, Keele,
 (_/ (_) / / Fax  : +44 1782 713082 Staffordshire.  ST5 5BG.  U.K.

 -
 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: Problem with 'file'

2003-06-26 Thread Ryan Novosielski
HP-UX vi screws it up too. I never thought of less -- less made it very
obvious what was going on. I am used to not having less (instead having
only more) and it is less obvious with more.

Pff, emacs.

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

On Thu, 26 Jun 2003, Matt Forrest wrote:

 Any hex editor would work but since you've mentioned vi, I feel
 obligated to tell you I looked at it using emacs.

 emacs is your friend - let the holy wars begin!!! :)

 hm I just loaded it up in vi and it also shows the nulls...
 I'm on a RH 7.3 box right now so it's actually vim.

 yeah... on solaris vi screws it up.  less works fine though.


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

 *




 -
 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: Problem with 'file'

2003-06-26 Thread Ryan Novosielski
I don't like to do this mainly because ifhp does a good job of
communicating with the printers and I like to use it for that purpose --
unless I can just set it as an of and that's it...

Regardless, I like to have that layer of protection against badly formed
jobs (seems to be working a little TOO well ;)).

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

On Thu, 26 Jun 2003, Villy Kruse wrote:

 On Wed, 25 Jun 2003, Ryan Novosielski wrote:

  Date: Wed, 25 Jun 2003 10:23:54 -0400 (EDT)
  From: Ryan Novosielski [EMAIL PROTECTED]
  Reply-To: [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: LPRng: Problem with 'file'
 
  Treating it as data is fine with me -- however, when file can't figure out
  what it is, there is a problem, as I do check for file type with ifhp and
  it will refuse unrecognized file types.
 

 In my setup I would route anything comming from a MS-Win system to a printer
 queue which have no filter what so ever, and leave the filtering entries to
 be used by unix users.



  As you can see from the files below, vi appears to have halved the
  contents of the file -- I'm assuming that the file after vi is done is no
  longer usable. Perhaps this question is now becoming one that is more for
  the file mailing list, but I had said that I would post the files in
  question regardless. The curious thing is that file, AFAIK, looks at the
  beginning of a file. vi would not likely be changing the beginning of the
  first line of the file that signals PCL data, so it doesn't make sense
  that it would have an effect on that (not to me, anyway). Also interesting
  is that this printer doesn't seem to use PJL prior to its PCL stream,
  which is odd from my experience. Here is the URL:
 
  http://www.umdnj.edu/~novosirj/PCL-data-problem
 



 Hexadecimal dump of the two files.  The dump is incomplete, just enough
 to get the point.

 The file /var/tmp/xxx/Job927-df-data.prn had 1200 bytes of leading binary
 zeroes.  Also note the data at 00500: in the data.prn file and compare with
 the data at position 0050: in the PCL.prn file.


 ::
 /var/tmp/xxx/Job927-df-PCL.prn.hex
 ::
 :  1b 25 2d 31  32 33 34 35   58 40 50 4a  4c 20 4a 4f  [EMAIL PROTECTED] JO
 0010:  42 20 4e 41  4d 45 3d 22   33 65 66 38  36 39 33 30  B NAME=3ef86930
 0020:  31 34 38 31  6e 6f 76 6f   73 69 72 6a  22 0a 40 50  1481novosirj[EMAIL 
 PROTECTED]
 0030:  4a 4c 20 45  4e 54 45 52   20 4c 41 4e  47 55 41 47  JL ENTER LANGUAG
 0040:  45 3d 50 43  4c 33 47 55   49 0a 1b 2a  6f 35 57 04  E=PCL3GUI..*o5W.
 0050:  09 1b 2a 6f  35 57 04 0d   0d 84 1b 2a  6f 35 57 0a  ..*o5W.*o5W.
 0060:  05 1b 26 6c  37 48 1b 26   6c 30 4d 1b  2a 6f 37 57  ..l7H.l0M.*o7W
 0070:  08 09 07 01  01 1b 26 6c   32 41 1b 26  6c 2d 32 48  ..l2A.l-2H
 0080:  1b 2a 6f 35  57 0a 01 1b   2a 6f 35 57  07 08 02 1b  .*o5W...*o5W
 0090:  2a 6f 30 4d  1b 26 75 33   30 30 44 1b  2a 70 30 58  *o0M.u300D.*p0X
 00a0:  1b 2a 70 33  35 59 1b 2a   67 32 36 57  02 04 01 2c  .*p35Y.*g26W...,

 ::
 /var/tmp/xxx/Job927-df-data.prn.hex
 ::
   Same
 04b0:  1b 25 2d 31  32 33 34 35   58 40 50 4a  4c 20 4a 4f  [EMAIL PROTECTED] JO
 04c0:  42 20 4e 41  4d 45 3d 22   33 65 66 38  36 39 33 30  B NAME=3ef86930
 04d0:  31 34 38 31  6e 6f 76 6f   73 69 72 6a  22 0a 40 50  1481novosirj[EMAIL 
 PROTECTED]
 04e0:  4a 4c 20 45  4e 54 45 52   20 4c 41 4e  47 55 41 47  JL ENTER LANGUAG
 04f0:  45 3d 50 43  4c 33 47 55   49 0a 1b 2a  6f 35 57 04  E=PCL3GUI..*o5W.
 0500:  09 00 00 00  1b 2a 6f 35   57 04 0d 00  0d 84 1b 2a  .*o5W..*
 0510:  6f 35 57 0a  05 00 00 00   1b 26 6c 37  48 1b 26 6c  o5W..l7H.l
 0520:  30 4d 1b 2a  6f 37 57 08   09 00 00 07  01 01 1b 26  0M.*o7W
 0530:  6c 32 41 1b  26 6c 2d 32   48 1b 2a 6f  35 57 0a 01  l2A.l-2H.*o5W..
 0540:  00 00 00 1b  2a 6f 35 57   07 08 00 00  02 1b 2a 6f  *o5W..*o
 0550:  30 4d 1b 26  75 33 30 30   44 1b 2a 70  30 58 1b 2a  0M.u300D.*p0X.*
 0560:  70 33 35 59  1b 2a 67 32   36 57 02 04  01 2c 01 2c  p35Y.*g26W...,.,



 --
 Villy


 -
 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

Re: LPRng: Problem with 'file'

2003-06-26 Thread Ryan Novosielski
Argh! I had never seen this with the software I was using and since vi
didn't show the NULL's, I just assumed that the beginning was fine...

I got the same thing printed to file or looking at the df from the spool
directory. Looks like the driver is hosed. I am using the Win2k v3.1 PCL3
driver (it calls the LANGUAGE PCL3GUI for some reason). The PS driver
doesn't do that, but then again, PS sucks on this printer which is the
whole reason I am doing this anyway!

If you wouldn't mind, sure. I don't know whether it's the driver for this
OS in particular, but the PS drivers even for 2k don't do it. Another item
of note is that I have these drivers installed on a Samba server in the
PRINT$ share, but I can't see what that has to do with anything either.

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

On Thu, 26 Jun 2003, Sam Lown wrote:

 On Wed, 2003-06-25 at 21:58, Matt Forrest wrote:
  The 1st 1200 bytes of the file are all zero (AKA 0x00) immediately after
  that you have the normal ESC code for some PJL stuff
 

 I too confirmed this, there is something seriously wrong with one of
 your drivers.

 How did you generate this file? is it directly from windows i.e. Print
 to file, or is it taken from a stopped queue on the server?

 I am not surprised that 'file' is having problems! We too use the same
 printer here, if you like I can try and find out the version of our
 windows drivers (I'm a unix person ;-) as I know for a fact that we
 don't get that 'crappy' stuff at the beginning of printouts.

 cheers,

 sam


  Try stripping off just those bytes or get
  http://www.scs.ryerson.ca/mforrest/printing/Job927-df-mf.prn
 
 
  In the -PCL- you don't have the ESC code to end the job.. shouldn't be a
  problem if the printer is set to auto personality, but I've always seen it
  there.  If you just strip the zeros from the start of the file I'm
  guessing it will work fine.
 
  I haven't tried printing it 'cause I'm lazy right now and don't want to
  have to walk to 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!!!  :}
 
  *
 
 
 
 
  -
  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.
  -
 --
 CERN, Geneva
 IT - Product Support - Unix Infrastructure
 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.
 -


-
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 

Re: LPRng: Problem with 'file'

2003-06-25 Thread Villy Kruse
On Tue, 24 Jun 2003, Ryan Novosielski wrote:

 Date: Tue, 24 Jun 2003 18:09:24 -0400 (EDT)
 From: Ryan Novosielski [EMAIL PROTECTED]
 Reply-To: [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: LPRng: Problem with 'file'

 There is a LOT different. The most noticeable seems to be the outputs of
 cmp -l in the first column are about 2-3 times larger than the second one.
 I'm guessing maybe vi chopped some long lines, if that's what those
 numbers are? Why would ifhp care?

 In any case, I'm going to produce a set of small df's to post and see what
 the consensus is... this is driving me /nuts/.


Standard unix vi chops all binary zeroes, and yes, you do get
problems with long lines as well.  In my experience print data from
MS-Windows should be treated as binary data, and any modifications
inclusing stripping or inserting CR characters tend to produce garbage.
Postscript data, however, can normaly be treated as text files without
too much problems.


Villy


-
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 'file'

2003-06-25 Thread Dave Lovelace
Ryan Novosielski wrote:
 
 Treating it as data is fine with me -- however, when file can't figure out
 what it is, there is a problem, as I do check for file type with ifhp and
 it will refuse unrecognized file types.
 
 As you can see from the files below, vi appears to have halved the
 contents of the file -- I'm assuming that the file after vi is done is no
 longer usable. Perhaps this question is now becoming one that is more for
 the file mailing list, but I had said that I would post the files in
 question regardless. The curious thing is that file, AFAIK, looks at the
 beginning of a file. vi would not likely be changing the beginning of the
 first line of the file that signals PCL data, so it doesn't make sense
 that it would have an effect on that (not to me, anyway). Also interesting
 is that this printer doesn't seem to use PJL prior to its PCL stream,
 which is odd from my experience. Here is the URL:
 
 http://www.umdnj.edu/~novosirj/PCL-data-problem
 

I get access-denied on Job927-df-data.prn, Ryan.
(Not that I really expect to get anywhere with this, mind you.)

(Hmm.  Have you updated to a recent rev of file, BTW?)

-- 
- Dave Lovelace
  [EMAIL PROTECTED]
  [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: Problem with 'file'

2003-06-25 Thread Ryan Novosielski
Yes, I have since fixed the permissions -- sorry about that.

I am running file 3.4.1, just because I am leery of switching to a
completely different rev without knowing the affect it will have on LPRng.
AFAIK, 3.4.1 is the most recent 3.x release.

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

On Wed, 25 Jun 2003, Dave Lovelace wrote:

 Ryan Novosielski wrote:
 
  Treating it as data is fine with me -- however, when file can't figure out
  what it is, there is a problem, as I do check for file type with ifhp and
  it will refuse unrecognized file types.
 
  As you can see from the files below, vi appears to have halved the
  contents of the file -- I'm assuming that the file after vi is done is no
  longer usable. Perhaps this question is now becoming one that is more for
  the file mailing list, but I had said that I would post the files in
  question regardless. The curious thing is that file, AFAIK, looks at the
  beginning of a file. vi would not likely be changing the beginning of the
  first line of the file that signals PCL data, so it doesn't make sense
  that it would have an effect on that (not to me, anyway). Also interesting
  is that this printer doesn't seem to use PJL prior to its PCL stream,
  which is odd from my experience. Here is the URL:
 
  http://www.umdnj.edu/~novosirj/PCL-data-problem
 

 I get access-denied on Job927-df-data.prn, Ryan.
 (Not that I really expect to get anywhere with this, mind you.)

 (Hmm.  Have you updated to a recent rev of file, BTW?)

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

 -
 YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
 The address you post from MUST be your subscription address

 If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
 or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
 to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
 with:   | example:
 subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
 unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

 If you have major problems,  send email to [EMAIL PROTECTED] with the word
 LPRNGLIST in the SUBJECT line.
 -


-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


Re: LPRng: Problem with 'file'

2003-06-25 Thread Dave Lovelace
Ryan Novosielski wrote:
 
 Yes, I have since fixed the permissions -- sorry about that.
 
 I am running file 3.4.1, just because I am leery of switching to a
 completely different rev without knowing the affect it will have on LPRng.
 AFAIK, 3.4.1 is the most recent 3.x release.
 
Ryan,
This is definitely interesting.  On our (now old  creaky) SYSV Unix box,
running the file that came with it, Here's what I see for your two files:
Job927-df-PCL.prn:  data
Job927-df-data.prn: English text
(Can't make it tell me what the rev on file is.)

On our RH Linux (old - RH 6.2) system, which is running file 3.28, I get:
Job927-df-PCL.prn:  HP Printer Job Language data
Job927-df-data.prn: data

The HP Printer Job Language data is what you'd want it to show, am I right?
The relevant entries from the magic file are somewhere in this mess, I think:

-snip-snip-snip-snip-snip-snip-snip-snip-
# HP Printer Job Language
0   string  [EMAIL PROTECTED]   HP Printer Job Language data
# HP Printer Job Language
# The header found on Win95 HP plot files is the Silliest Thing possible 
# (TM)
# Every driver puts the language at some random position, with random case
# (LANGUAGE and Language)
# For example the LaserJet 5L driver puts the PJL ENTER LANGUAGE in line 10
# From: Uwe Bonnes [EMAIL PROTECTED]
# 
0   string  [EMAIL PROTECTED]   HP Printer Job Language data
0 string  \0 %s  
0string  \0 %s  
0   string  \0 %s  
0  string  \0 %s  
#15string  \ ENTER\ LANGUAGE\ =
#31string  PostScript  PostScript

# HP Printer Control Language, Daniel Quinlan ([EMAIL PROTECTED])
0   string  \033E\033   HP PCL printer data
3  string  \l0A   - default page size
3  string  \l1A   - US executive page size
3  string  \l2A   - US letter page size
3  string  \l3A   - US legal page size
3  string  \l26A  - A4 page size
3  string  \l80A  - Monarch envelope size
3  string  \l81A  - No. 10 envelope size
3  string  \l90A  - Intl. DL envelope size
3  string  \l91A  - Intl. C5 envelope size
3  string  \l100A - Intl. B5 envelope size
3  string  \l-81A - No. 10 envelope size (landscape)
3  string  \l-90A - Intl. DL envelope size (landscape)
-snip-snip-snip-snip-snip-snip-snip-snip-

I suggest that you look at your magic file.  Consider patching these things
in.  On later revs of RedHat, we've had to run file with a special option
to create a file called (IIRC) magic.mgc before any changes have any effect;
I'd guess that's for a later rev of file than you're running, but I really
don't know  can't check right now.

I'll actually *look* at your files tomorrow when I find time.

-- 
- Dave Lovelace
  [EMAIL PROTECTED]
  [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: Problem with 'file'

2003-06-25 Thread Keith Rinaldo
Ryan,

Using file version 3.37 on Debian Linux and file version 3.39 on Solaris 9, I get the 
same output.

Job927-df-data.prn: data
Job927-df-PCL.prn: HP Printer Job Language data

---
Keith Rinaldo
Systems Administrator
College of Engineering
University of Nevada, Las Vegas


- Original Message - 
From: Ryan Novosielski [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, June 25, 2003 7:23 AM
Subject: Re: LPRng: Problem with 'file'


 Treating it as data is fine with me -- however, when file can't figure out
 what it is, there is a problem, as I do check for file type with ifhp and
 it will refuse unrecognized file types.
 
 As you can see from the files below, vi appears to have halved the
 contents of the file -- I'm assuming that the file after vi is done is no
 longer usable. Perhaps this question is now becoming one that is more for
 the file mailing list, but I had said that I would post the files in
 question regardless. The curious thing is that file, AFAIK, looks at the
 beginning of a file. vi would not likely be changing the beginning of the
 first line of the file that signals PCL data, so it doesn't make sense
 that it would have an effect on that (not to me, anyway). Also interesting
 is that this printer doesn't seem to use PJL prior to its PCL stream,
 which is odd from my experience. Here is the URL:
 
 http://www.umdnj.edu/~novosirj/PCL-data-problem
 
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  |  | Ryan Novosielski - Jr. UNIX Systems Admin
 |$| |__| |  | |__/ | \| _|  | [EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630
 
 On Wed, 25 Jun 2003, Villy Kruse wrote:
 
  On Tue, 24 Jun 2003, Ryan Novosielski wrote:
 
   Date: Tue, 24 Jun 2003 18:09:24 -0400 (EDT)
   From: Ryan Novosielski [EMAIL PROTECTED]
   Reply-To: [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: Re: LPRng: Problem with 'file'
  
   There is a LOT different. The most noticeable seems to be the outputs of
   cmp -l in the first column are about 2-3 times larger than the second one.
   I'm guessing maybe vi chopped some long lines, if that's what those
   numbers are? Why would ifhp care?
  
   In any case, I'm going to produce a set of small df's to post and see what
   the consensus is... this is driving me /nuts/.
  
 
  Standard unix vi chops all binary zeroes, and yes, you do get
  problems with long lines as well.  In my experience print data from
  MS-Windows should be treated as binary data, and any modifications
  inclusing stripping or inserting CR characters tend to produce garbage.
  Postscript data, however, can normaly be treated as text files without
  too much problems.
 
 
  Villy
 
 
  -
  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.
 -
 

-
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

Re: LPRng: Problem with 'file'

2003-06-25 Thread Matt Forrest
The 1st 1200 bytes of the file are all zero (AKA 0x00) immediately after
that you have the normal ESC code for some PJL stuff

Try stripping off just those bytes or get
http://www.scs.ryerson.ca/mforrest/printing/Job927-df-mf.prn


In the -PCL- you don't have the ESC code to end the job.. shouldn't be a
problem if the printer is set to auto personality, but I've always seen it
there.  If you just strip the zeros from the start of the file I'm
guessing it will work fine.

I haven't tried printing it 'cause I'm lazy right now and don't want to
have to walk to 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!!!  :}

*




-
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 'file'

2003-06-24 Thread Ryan Novosielski
So what is the appropriate way to repair such a file before it gets to the
printer, then?

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

On Fri, 20 Jun 2003, Henrik Edlund wrote:

 On Fri, 20 Jun 2003, Ryan Novosielski wrote:

 RN I am printing via the HP 2500cm driver for Win2k, which sends some PJL and
 RN says @PJL ENTER LANGUAGE=PCL3GUI. That's just fine. The problem is that
 RN 'file' claims that the file is of type 'data'. I vi'd the file, did
 RN nothing to it, saved it, and ran file again -- now it recognizes it as a
 RN HP Printer Job Language. The file appears to have the proper PJL header,
 RN with the ^[%-12345X -- forgive me if I'm getting that wrong off the top of
 RN my head. Unfortunately, though, as printed, file calls it data and runs
 RN off a page that says No conversion available for type 'data'.
 RN
 RN Any clues here?

 Could it be the file contain CR (carriage return)? Windows machines puts
 both NL and CR and end of lines. How it becomes data I don't know, but
 as it was okay after you saved it (on UNIX I presume) it sounds familiar.

 -
 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: Problem with 'file'

2003-06-24 Thread David Bear
On Tue, Jun 24, 2003 at 10:58:39AM -0400, Ryan Novosielski wrote:
 So what is the appropriate way to repair such a file before it gets to the
 printer, then?

if indeed it is the extra cr chars, you could 

cat file | tr -d \r | ifhp

or something like that.  tr is fast...
 
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  |  | Ryan Novosielski - Jr. UNIX Systems Admin
 |$| |__| |  | |__/ | \| _|  | [EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630
 
 On Fri, 20 Jun 2003, Henrik Edlund wrote:
 
  On Fri, 20 Jun 2003, Ryan Novosielski wrote:
 
  RN I am printing via the HP 2500cm driver for Win2k, which sends some PJL and
  RN says @PJL ENTER LANGUAGE=PCL3GUI. That's just fine. The problem is that
  RN 'file' claims that the file is of type 'data'. I vi'd the file, did
  RN nothing to it, saved it, and ran file again -- now it recognizes it as a
  RN HP Printer Job Language. The file appears to have the proper PJL header,
  RN with the ^[%-12345X -- forgive me if I'm getting that wrong off the top of
  RN my head. Unfortunately, though, as printed, file calls it data and runs
  RN off a page that says No conversion available for type 'data'.
  RN
  RN Any clues here?
 
  Could it be the file contain CR (carriage return)? Windows machines puts
  both NL and CR and end of lines. How it becomes data I don't know, but
  as it was okay after you saved it (on UNIX I presume) it sounds familiar.
 
  -
  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.
 -

-- 
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: Problem with 'file'

2003-06-24 Thread Ryan Novosielski
Nope -- the file behaves exactly the same after the tr (I redirected it to
another file), and still will work only after being vi'd (or probably
otherwise massaged, but this is what I know works).

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

On Tue, 24 Jun 2003, David Bear wrote:

 On Tue, Jun 24, 2003 at 10:58:39AM -0400, Ryan Novosielski wrote:
  So what is the appropriate way to repair such a file before it gets to the
  printer, then?

 if indeed it is the extra cr chars, you could

 cat file | tr -d \r | ifhp

 or something like that.  tr is fast...
 
   _  _ _  _ ___  _  _  _
  |Y#| |  | |\/| |  \ |\ |  |  | Ryan Novosielski - Jr. UNIX Systems Admin
  |$| |__| |  | |__/ | \| _|  | [EMAIL PROTECTED] - 973/972.0922 (2-0922)
  \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630
 
  On Fri, 20 Jun 2003, Henrik Edlund wrote:
 
   On Fri, 20 Jun 2003, Ryan Novosielski wrote:
  
   RN I am printing via the HP 2500cm driver for Win2k, which sends some PJL and
   RN says @PJL ENTER LANGUAGE=PCL3GUI. That's just fine. The problem is that
   RN 'file' claims that the file is of type 'data'. I vi'd the file, did
   RN nothing to it, saved it, and ran file again -- now it recognizes it as a
   RN HP Printer Job Language. The file appears to have the proper PJL header,
   RN with the ^[%-12345X -- forgive me if I'm getting that wrong off the top of
   RN my head. Unfortunately, though, as printed, file calls it data and runs
   RN off a page that says No conversion available for type 'data'.
   RN
   RN Any clues here?
  
   Could it be the file contain CR (carriage return)? Windows machines puts
   both NL and CR and end of lines. How it becomes data I don't know, but
   as it was okay after you saved it (on UNIX I presume) it sounds familiar.
  
   -
   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.
  -

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


-
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 

Re: LPRng: Problem with 'file'

2003-06-24 Thread Keith Rinaldo
If you're just looking to strip the extra ^M that Windows sticks into the files, then 
change the tr command to  tr -d '\015' 

\015 is the escape code for ^M.

---
Keith Rinaldo
Systems Administrator
College of Engineering
University of Nevada, Las Vegas


- Original Message - 
From: Ryan Novosielski [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Tuesday, June 24, 2003 10:10 AM
Subject: Re: LPRng: Problem with 'file'


 Nope -- the file behaves exactly the same after the tr (I redirected it to
 another file), and still will work only after being vi'd (or probably
 otherwise massaged, but this is what I know works).
 
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  |  | Ryan Novosielski - Jr. UNIX Systems Admin
 |$| |__| |  | |__/ | \| _|  | [EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630
 
 On Tue, 24 Jun 2003, David Bear wrote:
 
  On Tue, Jun 24, 2003 at 10:58:39AM -0400, Ryan Novosielski wrote:
   So what is the appropriate way to repair such a file before it gets to the
   printer, then?
 
  if indeed it is the extra cr chars, you could
 
  cat file | tr -d \r | ifhp
 
  or something like that.  tr is fast...
  
    _  _ _  _ ___  _  _  _
   |Y#| |  | |\/| |  \ |\ |  |  | Ryan Novosielski - Jr. UNIX Systems Admin
   |$| |__| |  | |__/ | \| _|  | [EMAIL PROTECTED] - 973/972.0922 (2-0922)
   \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630
  
   On Fri, 20 Jun 2003, Henrik Edlund wrote:
  
On Fri, 20 Jun 2003, Ryan Novosielski wrote:
   
RN I am printing via the HP 2500cm driver for Win2k, which sends some PJL and
RN says @PJL ENTER LANGUAGE=PCL3GUI. That's just fine. The problem is that
RN 'file' claims that the file is of type 'data'. I vi'd the file, did
RN nothing to it, saved it, and ran file again -- now it recognizes it as a
RN HP Printer Job Language. The file appears to have the proper PJL header,
RN with the ^[%-12345X -- forgive me if I'm getting that wrong off the top of
RN my head. Unfortunately, though, as printed, file calls it data and runs
RN off a page that says No conversion available for type 'data'.
RN
RN Any clues here?
   
Could it be the file contain CR (carriage return)? Windows machines puts
both NL and CR and end of lines. How it becomes data I don't know, but
as it was okay after you saved it (on UNIX I presume) it sounds familiar.
   
-
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.
   -
 
  --
  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

Re: LPRng: Problem with 'file'

2003-06-24 Thread Ryan Novosielski
There is a LOT different. The most noticeable seems to be the outputs of
cmp -l in the first column are about 2-3 times larger than the second one.
I'm guessing maybe vi chopped some long lines, if that's what those
numbers are? Why would ifhp care?

In any case, I'm going to produce a set of small df's to post and see what
the consensus is... this is driving me /nuts/.

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

On Tue, 24 Jun 2003, Dave Lovelace wrote:

 Ryan Novosielski wrote:
 
  Nope -- the file behaves exactly the same after the tr (I redirected it to
  another file), and still will work only after being vi'd (or probably
  otherwise massaged, but this is what I know works).
 
 I was somewhat doubtful about CRs being the problem; in my experience,
 vi leaves them alone.  (The vim that's on the RedHat Linux I use most now
 invisibly assumes that you really mean to edit a DOS/Win file, strips them
 off when you start editing, and adds them back when you save.  vi on
 the Unix versions I'm familiar with treats them as characters, displayed
 as ^M.)

 A suggestion for determining what *is* changing:
 - make a backup copy of your file
 - load  save with vi as you've been doing
 - Look at the files.  Are they still the same size?  Try cmp -l (that's
   lowercase L to look for differences.  Also, these are supposed to
   be text files, IIRC, aren't they?  Try running the before  after
   versions through cat -vt and running diff on the results.

 Actually, I just had a thought.  Probably not the cause of your problem,
 but one thing I *know* vi is apt to do to a file.  If your file ends
 without a linefeed, vi will add one.  (Again, I'm assuming I'm remembering
 correctly that this is supposed to be text for this idea to make any
 sense at all.)  In that case, echo  yourfile would work as well as
 running through vi.

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

 -
 YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
 The address you post from MUST be your subscription address

 If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
 or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
 to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
 with:   | example:
 subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
 unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

 If you have major problems,  send email to [EMAIL PROTECTED] with the word
 LPRNGLIST in the SUBJECT line.
 -


-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-


Re: LPRng: Problem with 'file'

2003-06-24 Thread Ryan Novosielski
Nope, it's definitely not ^M.

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

On Tue, 24 Jun 2003, Keith Rinaldo wrote:

 If you're just looking to strip the extra ^M that Windows sticks into the files, 
 then change the tr command to  tr -d '\015' 

 \015 is the escape code for ^M.

 ---
 Keith Rinaldo
 Systems Administrator
 College of Engineering
 University of Nevada, Las Vegas


 - Original Message -
 From: Ryan Novosielski [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Sent: Tuesday, June 24, 2003 10:10 AM
 Subject: Re: LPRng: Problem with 'file'


  Nope -- the file behaves exactly the same after the tr (I redirected it to
  another file), and still will work only after being vi'd (or probably
  otherwise massaged, but this is what I know works).
 
   _  _ _  _ ___  _  _  _
  |Y#| |  | |\/| |  \ |\ |  |  | Ryan Novosielski - Jr. UNIX Systems Admin
  |$| |__| |  | |__/ | \| _|  | [EMAIL PROTECTED] - 973/972.0922 (2-0922)
  \__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630
 
  On Tue, 24 Jun 2003, David Bear wrote:
 
   On Tue, Jun 24, 2003 at 10:58:39AM -0400, Ryan Novosielski wrote:
So what is the appropriate way to repair such a file before it gets to the
printer, then?
  
   if indeed it is the extra cr chars, you could
  
   cat file | tr -d \r | ifhp
  
   or something like that.  tr is fast...
   
 _  _ _  _ ___  _  _  _
|Y#| |  | |\/| |  \ |\ |  |  | Ryan Novosielski - Jr. UNIX Systems Admin
|$| |__| |  | |__/ | \| _|  | [EMAIL PROTECTED] - 973/972.0922 (2-0922)
\__/ Univ. of Med. and Dent. | IST/ACS - NJMS Medical Science Bldg - C630
   
On Fri, 20 Jun 2003, Henrik Edlund wrote:
   
 On Fri, 20 Jun 2003, Ryan Novosielski wrote:

 RN I am printing via the HP 2500cm driver for Win2k, which sends some PJL 
 and
 RN says @PJL ENTER LANGUAGE=PCL3GUI. That's just fine. The problem is that
 RN 'file' claims that the file is of type 'data'. I vi'd the file, did
 RN nothing to it, saved it, and ran file again -- now it recognizes it as a
 RN HP Printer Job Language. The file appears to have the proper PJL header,
 RN with the ^[%-12345X -- forgive me if I'm getting that wrong off the top 
 of
 RN my head. Unfortunately, though, as printed, file calls it data and runs
 RN off a page that says No conversion available for type 'data'.
 RN
 RN Any clues here?

 Could it be the file contain CR (carriage return)? Windows machines puts
 both NL and CR and end of lines. How it becomes data I don't know, but
 as it was okay after you saved it (on UNIX I presume) it sounds familiar.

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

Re: LPRng: Problem with 'file'

2003-06-20 Thread Henrik Edlund
On Fri, 20 Jun 2003, Ryan Novosielski wrote:

RN I am printing via the HP 2500cm driver for Win2k, which sends some PJL and
RN says @PJL ENTER LANGUAGE=PCL3GUI. That's just fine. The problem is that
RN 'file' claims that the file is of type 'data'. I vi'd the file, did
RN nothing to it, saved it, and ran file again -- now it recognizes it as a
RN HP Printer Job Language. The file appears to have the proper PJL header,
RN with the ^[%-12345X -- forgive me if I'm getting that wrong off the top of
RN my head. Unfortunately, though, as printed, file calls it data and runs
RN off a page that says No conversion available for type 'data'.
RN
RN Any clues here?

Could it be the file contain CR (carriage return)? Windows machines puts
both NL and CR and end of lines. How it becomes data I don't know, but
as it was okay after you saved it (on UNIX I presume) it sounds familiar.

-
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 'file'

2003-06-20 Thread Robert Solomon
At work I use gVim on Windows.  Under some circumstances, it
auto converts Unix line endings to windows when saving a file, I
think based on the file name ending.  Sounds like this happened
here...

On Fri, 20 Jun 2003, Henrik Edlund wrote:

 On Fri, 20 Jun 2003, Ryan Novosielski wrote:

 RN I am printing via the HP 2500cm driver for Win2k, which sends some PJL and
 RN says @PJL ENTER LANGUAGE=PCL3GUI. That's just fine. The problem is that
 RN 'file' claims that the file is of type 'data'. I vi'd the file, did
 RN nothing to it, saved it, and ran file again -- now it recognizes it as a
 RN HP Printer Job Language. The file appears to have the proper PJL header,
 RN with the ^[%-12345X -- forgive me if I'm getting that wrong off the top of
 RN my head. Unfortunately, though, as printed, file calls it data and runs
 RN off a page that says No conversion available for type 'data'.
 RN
 RN Any clues here?

 Could it be the file contain CR (carriage return)? Windows machines puts
 both NL and CR and end of lines. How it becomes data I don't know, but
 as it was okay after you saved it (on UNIX I presume) it sounds familiar.

 -
 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: Problem with errors, notification of errors, and job saving...

2003-06-19 Thread Tim
That's the route we've followed in the past (in fact we've got a custom
module to do it), and what we're doing as an interim solution, but I was
hoping to be able to use LPRng's built-in facilities.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of
Henrik Edlund
Sent: Wednesday, June 18, 2003 4:01 PM
To: [EMAIL PROTECTED]
Subject: Re: LPRng: Problem with errors, notification of errors, and job
saving...


On Wed, 18 Jun 2003, Tim Gaastra wrote:

TG B) Have the operator mailed that error

Do like I do, mail from within your scripts and leave LPRng out of any
mailing other than fatal errors (JREMOVE) to the operator.

Then you can still return JHOLD and still get a mail sent to the person that
handles held jobs.


-
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: Problem with errors, notification of errors, and jobsaving...

2003-06-18 Thread Henrik Edlund
On Wed, 18 Jun 2003, Tim Gaastra wrote:

TG B) Have the operator mailed that error

Do like I do, mail from within your scripts and leave LPRng out of any
mailing other than fatal errors (JREMOVE) to the operator.

Then you can still return JHOLD and still get a mail sent to the person
that handles held jobs.

-
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 when printing from unix

2003-06-03 Thread Bilal Rizvi

Hi walter,
Thanks for the help.
I tried what you asked me to do and i guess you are right, its a problem
with the filter. Following is the error message


pagecount using 'pjl info pagecount' at 11:05:07.717
setting up printer at 11:05:07.718
getting sync using 'pjl echo' at 11:05:07.718
id = 'LASERJET 8150' at 11:05:08.410
sync done at 11:05:08.418
pagecounter 184967 after 1 attempts at 11:05:08.522
pagecounter 184967 at 11:05:08.523
sending job file at 11:05:08.525
starting transfer at 11:05:08.525
file program = '/usr/bin/file dfA033montezuma.occ.engr.uc.edu' at
11:44:20.245
started FILE_UTIL- 'file' at 11:44:20.261
'FILE_UTIL' error msg 'execv '/usr/bin/file' failed - No such file or
directory' at 11:44:20.261
exit code 33 - No such file or directory at 11:44:20.262

The file exists in the specified directory. I am not sure what exactly is
the solution to this problem. Do i have to upgrade to the new IFHp filer.
kindly let me know
Thanks
Bilal




On Sun, 1 Jun 2003 [EMAIL PROTECTED] wrote:


 hi,
 The first thing to try is to save a sample file (change lp - lp=/tmp/test.ps)
 and see if it look like something usefull IF NOT its a filter problem.

 Second is to send the file direcly to the printer lpr -P [EMAIL PROTECTED]

 And see what happens.

 walter


 - - - - - - - - - - - - - - Original Message - - - - - - - - - - - - - -
 From: Bilal Rizvi [EMAIL PROTECTED]
 Subject: LPRng: Problem when printing from unix
 Date: 05/31/03 22:06

 Hey guys
 We use LPRng 3.8.14 and IFHP 3.5.10 for printing from our Windows 2000
 sytems and Solaris 9 machines.

 Recently the print jobs from the SUN machines are casuing problems.The
 print jobs go to the printer but nothing gets prinited.The job appears on
 the printer but nothing prints.
 Folloing is the printcap file for one of the printers,

 8laser617
 :lp=IPaddress%9100
 :rw:pl#60:pw#80:
 :mx#0:sh:sb:ff_separator:sc:
 :fix_bad_job:
 :safe_chars=#_~\\ :
 :bl=Seq\: $-'j  Class\: $-'C User\: $-'n Job\: $-'J Date\: $-'t:
 :sd=/var/LPRng/spool/8laser617:
 :lf=/var/LPRng/spool/8laser617/log:
 :if=/var/LPRng/libexec/filters/ifhp:
 :ps=/var/LPRng/spool/8laser617/status:
 8laser617move
 :lp=IPadress%9100
 :rw:pl#60:pw#80:
 :mx#0:sh:sb:ff_separator:sc:
 :fix_bad_job:
 :safe_chars=#_~\\ :
 :bl=Seq\: $-'j  Class\: $-'C User\: $-'n Job\: $-'J Date\: $-'t:
 :sd=/var/LPRng/move/8laser617:
 :lf=/var/LPRng/move/8laser617/log:
 :if=/var/LPRng/libexec/filters/ifhp:
 :ps=/var/LPRng/move/8laser617/status:

 I am not sure why this is happening. We have HP 8100s and 8150.
 Thanks in advance for any help
 Bilal


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



-
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 

Re: LPRng: Problem when printing from unix

2003-06-01 Thread WHarms

hi,
The first thing to try is to save a sample file (change lp - lp=/tmp/test.ps)
and see if it look like something usefull IF NOT its a filter problem.

Second is to send the file direcly to the printer lpr -P [EMAIL PROTECTED]

And see what happens.

walter


- - - - - - - - - - - - - - Original Message - - - - - - - - - - - - - -
From: Bilal Rizvi [EMAIL PROTECTED]
Subject: LPRng: Problem when printing from unix
Date: 05/31/03 22:06

Hey guys
We use LPRng 3.8.14 and IFHP 3.5.10 for printing from our Windows 2000
sytems and Solaris 9 machines.

Recently the print jobs from the SUN machines are casuing problems.The
print jobs go to the printer but nothing gets prinited.The job appears on
the printer but nothing prints.
Folloing is the printcap file for one of the printers,

8laser617
:lp=IPaddress%9100
:rw:pl#60:pw#80:
:mx#0:sh:sb:ff_separator:sc:
:fix_bad_job:
:safe_chars=#_~\\ :
:bl=Seq\: $-'j  Class\: $-'C User\: $-'n Job\: $-'J Date\: $-'t:
:sd=/var/LPRng/spool/8laser617:
:lf=/var/LPRng/spool/8laser617/log:
:if=/var/LPRng/libexec/filters/ifhp:
:ps=/var/LPRng/spool/8laser617/status:
8laser617move
:lp=IPadress%9100
:rw:pl#60:pw#80:
:mx#0:sh:sb:ff_separator:sc:
:fix_bad_job:
:safe_chars=#_~\\ :
:bl=Seq\: $-'j  Class\: $-'C User\: $-'n Job\: $-'J Date\: $-'t:
:sd=/var/LPRng/move/8laser617:
:lf=/var/LPRng/move/8laser617/log:
:if=/var/LPRng/libexec/filters/ifhp:
:ps=/var/LPRng/move/8laser617/status:

I am not sure why this is happening. We have HP 8100s and 8150.
Thanks in advance for any help
Bilal


-
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: Problem with pagecounting on Lexmark and HP

2003-02-26 Thread Ryan Novosielski
Sorry for the long delay, but maybe this will still help someone. I have
no problem with the HP5000 series printers that I have. Here is my
printcap:

laser3
 :ae=|/opt/LPRng/libexec/filters/accounting-umdnj.pl end
 :af=/var/spool/lpd/%P/acct
 :as=|/opt/LPRng/libexec/filters/accounting-umdnj.pl start
 :cm=NJMS Alumni Lab - B624 - HP LaserJet 5000N
 :filter=/opt/LPRng/libexec/filters/ifhp
 :ifhp=model=hp5000,dev=laser3%9100
 :lp=/dev/null
 :sd=/var/spool/lpd/%P

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

On Mon, 21 Oct 2002, Raymond M. Reskusich wrote:

 It's probably safest in trying to track down the problem to increase the
 debugging level in the ifhp options  and look in the status file to
 see how the communications with the printer are working.

 Does the print job stay active in the queue as long as pages are
 coming out of the printer? If not, there may be a waitend' problem,
 like with the hp4100 and hp4550n. Does anyone on the list have
 pagecounting working with this model printer, or is it a widespread
 problem?

 Raymond M. Reskusich

 On Mon, Oct 21, 2002 at 10:08:43AM +, Marcelo Yandun wrote:
  it does not work
  Thanks
 
  Johan Bengtsson wrote:
 
  On Fri, 18 Oct 2002, Marcelo Yandun wrote:
  
  
  
  Hi,
  
  I am trying to set-up pagecounting on Lexmark,HP5000N and HP8000N
  but i can't make it works. i only get -p0.
  Idon't know what is wrong, please help.
  
  This is my printcap:
  for HP5000N:
  hp5hr041|Human Resources HP 5000N Laser Printer on the 4th Floor:\
 :sd=/var/spool/lpd/%P:\
 :mx#0:\
 :sh:\
 :rm=hp5hr041:\
 :rp=passthru:\
 :lpd_bounce=true:\
 :af=/var/log/lpd/%Plog:\
 :lf=/var/log/lpd/%P:
 :as=/usr/local/bin/accounting.pl start
 :ae=/usr/local/bin/accounting.pl end
 :filter=/usr/libexec/filters/ifhp
 :of=/usr/libexec/filters/ifhp
 :ifhp=model=hp5000,ps,pagecount=ps,waitend=ps
  
  
  
  Try something like this:
  
  :ifhp=model=hp5000,status,sync,pagecount,waitend
  
  Johan Bengtsson
  
  
 
  --
  Administrador del Sistema
  ALAI
  Agencia Latinoamericana de Informacion
  Telf: 2505-074
 
 


-
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 queues passed to chooser script

2002-11-08 Thread Patrick Powell
 From [EMAIL PROTECTED] Fri Nov  8 02:09:35 2002
 Date: Fri, 08 Nov 2002 09:52:13 +0100
 From: Mark Vinkx [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: problem with queues passed to chooser script


 I user LPRng-3.8.9-4 on redhat 7.3

 I defineded  a loadbalancing queue xeroxt with2 subservers xeroxt1 an xeroxt2
 In the howto documentation is stated that the available queues are passed to the
 chooser program on stdin

 The problem is that I don't always get both queues
 When I send a job to the printer I see that the firs time the chooser script
 is run that there are no queues on stdin. So I return no queue on stdout and exit 
with return code 0
 After a few seconds the chooser script is started again and now 1 or both queues are 
available on stdin.
 What strikes me as odd is the fact that when I return no queue the following is 
logged by lprng
  Status: chooser did not find subserver, waiting 10 sec at 09:48:42.277
 But only after 2 seconds the chooser script is started again

The wording should have been 'the queues that are not busy' are sent on
STDIN.  This prevents sending jobs to a busy queue.

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 TCP Printing

2002-08-28 Thread Joel Hammer

I have spent many happy hours on a problem like this, too.  Memory fades
fast, but, thankfully, I keep all my old email. Love those big hard
drives.  I had three problems in my situation:

1. A required program didn't have it full path name specified.
2. There was an error in the script in my print queue directory.
3. Third, I was using enscript in my homemade print filter, and was
trying to cat to it, which is wrong, I think.

Also, remember, there are different users involved here.  Make sure
permissions are set right for your daemon running the print job.

And, there always the bizzare idea that your for some odd reason  your
printcap file can't be read and printed at the same time.

And, I don't use an of: like you do. It seems odd that the same file is
the if: and the of:.

Joel

On Wed, Aug 28, 2002 at 12:59:03PM -0400, Ryan Novosielski wrote:
 # cat /etc/printcap | /opt/LPRng/libexec/filters/lpf | lpr -Pps1nwk%9901 -Y
 
 ..works!
 
 # lpr -Plp /etc/printcap
 
 ...no work. :(
 
 # lpc printcap lp
 Printer: lp@njmsa
 lp
  :ab
  :af=/var/spool/lpd/%P/acct
  :bp=/opt/LPRng/libexec/filters/lpbanner
  :cm=Newark Lab - C632 - HP LinePrinter 2563A
  :if=/opt/LPRng/libexec/filters/lpf
  :lp=ps1nwk%9901
  :of=/opt/LPRng/libexec/filters/lpf
  :sd=/var/spool/lpd/%P
 
 # lpq -Plp -L
  Status: subserver pid 29628 starting at 12:56:06.190
  Status: accounting at start at 12:56:06.190
  Status: opening device 'ps1nwk%9901' at 12:56:06.495
  Status: printing job 'root@njmsa+557' at 12:56:06.498
  Status: creating banner at 12:56:06.499
  Status: Filter_file: pgm '/opt/LPRng/libexec/filters/lpbanner' exited
 with status 'JSUCC' at 12:56:06.744
  Status: printing 'root@njmsa+557' starting OF 'lpf' at 12:56:06.745
  Status: OF filter suspended at 12:56:06.835
  Status: processing 'dfA557njmsa.umdnj.edu', size 4180, format 'f', IF filter 'lpf' 
at 12:56:06.836
  Status: IF filter 'lpf' filter finished at 12:56:07.022
  Status: OF filter finished at 12:56:07.028
  Status: printing finished at 12:56:07.028
  Rank   Owner/ID  Class Job Files Size
 Time
 active root@njmsa+557   A   557 /etc/printcap 4180
 12:56:04
 
 ...anyone have any insight?
 
  _  _ _  _ ___  _  _  _
 |Y#| |  | |\/| |  \ |\ |  |  | Ryan Novosielski - Jr. UNIX Systems Admin
 |$| |__| |  | |__/ | \| _|  | [EMAIL PROTECTED] - 973/972.0922 (2-0922)
 \__/ Univ. of Med. and Dent. | IST/ACS - New Jersey Medical School - C630
 
 
 -
 YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
 The address you post from MUST be your subscription address
 
 If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
 or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
 to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
 with:   | example:
 subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
 unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]
 
 If you have major problems,  send email to [EMAIL PROTECTED] with the word
 LPRNGLIST in the SUBJECT line.
 -

-
YOU MUST BE A LIST MEMBER IN ORDER TO POST TO THE LPRNG MAILING LIST
The address you post from MUST be your subscription address

If you need help, send email to [EMAIL PROTECTED] (or lprng-requests
or lprng-digest-requests) with the word 'help' in the body.  For the impatient,
to subscribe to a list with name LIST,  send mail to [EMAIL PROTECTED]
with:   | example:
subscribe LIST mailaddr   |  subscribe lprng-digest [EMAIL PROTECTED]
unsubscribe LIST mailaddr |  unsubscribe lprng [EMAIL PROTECTED]

If you have major problems,  send email to [EMAIL PROTECTED] with the word
LPRNGLIST in the SUBJECT line.
-



Re: LPRng: Problem with lprng 3.8.5 on SUSE 8.0

2002-07-16 Thread Patrick Powell

 From [EMAIL PROTECTED] Thu Jul 11 18:05:48 2002
 From: David Milligan [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: Problem with lprng 3.8.5 on SUSE 8.0
 Date: Fri, 12 Jul 2002 11:56:58 +1200


 I am using lprng 3.8.5 that comes with SUSE 8.0 to print. I set things up in
 YAST2 and while it works it prints directly to the lpd daemon on the remote
 printer. I think this is because SUSE 8.0 by default sets force_localhost
 parameter to false in the printcap file as follows :-

 remote:\
 :cm=lpdfilter method=raw color=yes:\
 :[EMAIL PROTECTED]:\
 :sd=/var/spool/lpd/remote:\
 :lf=/var/spool/lpd/remote/log:\
 :af=/var/spool/lpd/remote/acct:\
 :ar:force_localhost@:\
 :tr=:cl:sh:

 If I edit this to remove the @ then spooling should be enabled (as verified
 by doing a checkpc -V -Premote). However if I do a lpq -Premote I get an
 error :-

 Printer: remote is raw@localhost
 Printer: raw@arguus - ERROR: spool queue for 'raw' does not exist on server
 arguus.crg.co.nz
non-existent printer or you need to run 'checkpc -f'

 Looking through the lprng archives I can see some comment that others using
 a similar version of lprng have experienced a similar problem and upgrading
 to a later version has fixed this for some. Does anybody have a later SUSE
 specific RPM I can use? I have downloaded some RPM's from www.lprng.org but
 these have a number of dependencies and didn't work so well for me when I
 forced the install :(

 David

Once again the overloading of the client and server information
in the printcap file causes headaches.  Add the following:


remote:\
 :cm=lpdfilter method=raw color=yes:\
 :[EMAIL PROTECTED]:\
 :sd=/var/spool/lpd/remote:\
 :lf=/var/spool/lpd/remote/log:\
 :af=/var/spool/lpd/remote/acct:\
 :ar:force_localhost@:\
 :tr=:cl:sh:

remote:client:[EMAIL PROTECTED]

Patrick Powell Astart Technologies
[EMAIL PROTECTED]6741 Convoy Court
Network and System San Diego, CA 92111
  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: problem

2002-06-07 Thread Alan O'Keefe

Hi All

I'm getting this same problem, ifhp doesn't seem to be interpreting
the @DEVFD3 as the LPRng output device, and is instead sending the 
output to a file in the spool directory with the name @DEVFD3.

I an using Red Hat 7.3 with:
LPRng-3.8.9-3
ifhp-3.5.8-1

The gs command in ifhp.conf is:

/usr/bin/gs -dSAFER -dPARANOIDSAFER -dBATCH -dNOPAUSE -q
'-sOutputFile=@DEVFD3' 31 12 -sPAPERSIZE=\%L{papersize}
-sDEVICE=\%s{gs_device} \%s{gs_options} -


Now in ifhp-3.4.4 the gs command was:

/usr/bin/gs -q -dSAFER -dBATCH -sOutputFile=- -sPAPERSIZE=\%L{papersize}
-sDEVICE=\%s{gs_device} \%s{gs_options} -

Which works !!!  

Was there a reason that this was changed ???

Regards
Alan

On Thu, 2002-06-06 at 05:41, [EMAIL PROTECTED] wrote:
 Hi Ignacio,
 
 you seem to run into some kind of ghostscript problem, the converted file
 has 0 bites, that's why you don't get any output. Try the gs string on the
 commandline and change it in the ifhp.conf as you need it...
 hope this helps
 
 best regards
   ~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, 5 Jun 2002, ignacio [iso-8859-15] josé wrote:
 
 
  Hello,
 
  I'm using the following packages: LPRng-3.8.12-1 and ifhp-3.5.8-1.
 
  I'm trying to print the example file 'testpage.ps'. I've shaped my
  printer, that is a Epson Stylus Color 600.
 
  When I run 'lpr testpage.ps' the LPRng makes his work. I know it because
  I've checked the process with the 'lpq -v' command. But later the document
  doesn't go to the printer; It is only written into the file '@DEVFD3'. Why
  doesn't it go to the printer?
  I know that the conversion process is well, because if I run 'cat @DEVFD3
   /dev/lp0' I obtain the document in the printer.
 
  I'm using the following printcap file:
 
   Epson600|impresora|lp:
   :rw:lp=/dev/lp0
   :sd=/var/spool/lpd/Epson600
   :lf=/var/spool/lpd/Epson600/errs
   :filter=/usr/libexec/filters/ifhp
   :ifhp=model=stc600pl.upp,status@
   :mx#0
   :ff_separator@
   :sh:
   :force_localhost
 
  Briefly, I'm obtaining the following lines when I run the lpq command:
 
   Status: waiting for subserver to exit at 13:28:14.008
   Status: subserver pid 1475 starting at 13:28:14.010
   Status: accounting at start at 13:28:14.010
   Status: opening device '/dev/lp0' at 13:28:14.028
   Status: printing job 'root@localhost+473' at 13:28:14.028
   Status: processing 'dfA473localhost.localdomain', size 260183, format 'f',
  IF filter 'ifhp' at 13:28:14.028
   Status: IF filter 'ifhp' filter finished at 13:28:18.565
   Status: printing finished at 13:28:18.565
   Status: accounting at end at 13:28:18.565
   Status: finished 'root@localhost+473', status 'JSUCC' at 13:28:18.565
   Status: subserver pid 1475 exit status 'JSUCC' at 13:28:18.566
   Status: [EMAIL PROTECTED]: job 'root@localhost+473' printed at
  13:28:18.566
   Status: job 'root@localhost+473' saved at 13:28:18.566
 
   Filter_status: starting transfer at 01:22:33.660
   Filter_status: using model 'stc600pl.upp' at 13:28:14.119
   Filter_status: setting up printer at 13:28:14.120
   Filter_status: pagecounter 0 at 13:28:14.121
   Filter_status: sending job file at 13:28:14.121
   Filter_status: starting transfer at 13:28:14.121
   Filter_status: initial job type 'POSTSCRIPT' at 13:28:14.121
   Filter_status: decoded job type 'RAW' at 13:28:14.121
   Filter_status: job type 'RAW', converter '/usr/bin/gs -dSAFER
  -dPARANOIDSAFER -dBATCH -dNOPAUSE -q '-sOutputFile=@DEVFD3' 31 12
  -sPAPERSIZE=letter @stc600pl.upp  -' at 13:28:14.121
   Filter_status: started CONVERTER- 'gs' at 13:28:14.122
   Filter_status: converter done, output 0 bytes at 13:28:18.564
   Filter_status: zero length conversion output at 13:28:18.564
   Filter_status: transferring 0 bytes at 13:28:18.564
   Filter_status: zero length job file at 13:28:18.564
   Filter_status: sent job file at 13:28:18.564
   Filter_status: pagecounter 0, pages 0 at 13:28:18.564
   Filter_status: done at 13:28:18.564
   Job: root@localhost+473 status= done
   Job: root@localhost+473 size= 260183
   Job: root@localhost+473 time= 0x3cfe03de
 
  What is wrong?
 
  Another thing. I think that the lpq command has a bug because, as you can
  see, the output is not in order. Furthermore, the output of a job is mixed
  with the output of other jobs.
 
  Thank you, and sorry for my poor english.
 
 
  -
  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 

Re: LPRng: problem

2002-06-05 Thread christoph . beyer

Hi Ignacio,

you seem to run into some kind of ghostscript problem, the converted file
has 0 bites, that's why you don't get any output. Try the gs string on the
commandline and change it in the ifhp.conf as you need it...
hope this helps

best regards
~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, 5 Jun 2002, ignacio [iso-8859-15] josé wrote:


 Hello,

 I'm using the following packages: LPRng-3.8.12-1 and ifhp-3.5.8-1.

 I'm trying to print the example file 'testpage.ps'. I've shaped my
 printer, that is a Epson Stylus Color 600.

 When I run 'lpr testpage.ps' the LPRng makes his work. I know it because
 I've checked the process with the 'lpq -v' command. But later the document
 doesn't go to the printer; It is only written into the file '@DEVFD3'. Why
 doesn't it go to the printer?
 I know that the conversion process is well, because if I run 'cat @DEVFD3
  /dev/lp0' I obtain the document in the printer.

 I'm using the following printcap file:

  Epson600|impresora|lp:
  :rw:lp=/dev/lp0
  :sd=/var/spool/lpd/Epson600
  :lf=/var/spool/lpd/Epson600/errs
  :filter=/usr/libexec/filters/ifhp
  :ifhp=model=stc600pl.upp,status@
  :mx#0
  :ff_separator@
  :sh:
  :force_localhost

 Briefly, I'm obtaining the following lines when I run the lpq command:

  Status: waiting for subserver to exit at 13:28:14.008
  Status: subserver pid 1475 starting at 13:28:14.010
  Status: accounting at start at 13:28:14.010
  Status: opening device '/dev/lp0' at 13:28:14.028
  Status: printing job 'root@localhost+473' at 13:28:14.028
  Status: processing 'dfA473localhost.localdomain', size 260183, format 'f',
 IF filter 'ifhp' at 13:28:14.028
  Status: IF filter 'ifhp' filter finished at 13:28:18.565
  Status: printing finished at 13:28:18.565
  Status: accounting at end at 13:28:18.565
  Status: finished 'root@localhost+473', status 'JSUCC' at 13:28:18.565
  Status: subserver pid 1475 exit status 'JSUCC' at 13:28:18.566
  Status: [EMAIL PROTECTED]: job 'root@localhost+473' printed at
 13:28:18.566
  Status: job 'root@localhost+473' saved at 13:28:18.566

  Filter_status: starting transfer at 01:22:33.660
  Filter_status: using model 'stc600pl.upp' at 13:28:14.119
  Filter_status: setting up printer at 13:28:14.120
  Filter_status: pagecounter 0 at 13:28:14.121
  Filter_status: sending job file at 13:28:14.121
  Filter_status: starting transfer at 13:28:14.121
  Filter_status: initial job type 'POSTSCRIPT' at 13:28:14.121
  Filter_status: decoded job type 'RAW' at 13:28:14.121
  Filter_status: job type 'RAW', converter '/usr/bin/gs -dSAFER
 -dPARANOIDSAFER -dBATCH -dNOPAUSE -q '-sOutputFile=@DEVFD3' 31 12
 -sPAPERSIZE=letter @stc600pl.upp  -' at 13:28:14.121
  Filter_status: started CONVERTER- 'gs' at 13:28:14.122
  Filter_status: converter done, output 0 bytes at 13:28:18.564
  Filter_status: zero length conversion output at 13:28:18.564
  Filter_status: transferring 0 bytes at 13:28:18.564
  Filter_status: zero length job file at 13:28:18.564
  Filter_status: sent job file at 13:28:18.564
  Filter_status: pagecounter 0, pages 0 at 13:28:18.564
  Filter_status: done at 13:28:18.564
  Job: root@localhost+473 status= done
  Job: root@localhost+473 size= 260183
  Job: root@localhost+473 time= 0x3cfe03de

 What is wrong?

 Another thing. I think that the lpq command has a bug because, as you can
 see, the output is not in order. Furthermore, the output of a job is mixed
 with the output of other jobs.

 Thank you, and sorry for my poor english.


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

Re: LPRng: Problem with OF filter on latest ifhp

2002-03-30 Thread Patrick Powell

 From [EMAIL PROTECTED] Wed Mar 20 03:42:31 2002
 Subject: LPRng: Problem with OF filter on latest ifhp
 To: [EMAIL PROTECTED]
 Date: Wed, 20 Mar 2002 10:42:33 + (GMT)
 From: Jonathan Knight [EMAIL PROTECTED]



 I've got the latest ifhp but seem to have a problem when it is used as an
 of filter.  We have bean counters so I need accounting and banner pages.
 The printcap appears as:

 'common

  ^^ use . (period) PLEASE!!!
 :rw
 :mx#0
 :sb
 :sd=/var/spool/lpd/%P
 :lf=log
 :ps=status
 :fx=flpv

 cspr2|Computer Science Student Laser Printer
 :sv=cspr2.a
 :tc='common

 cspr2.a
 :ss=cspr2
 :lp=.cs.keele.ac.uk%9100
 :filter=/usr/local/LPRng/libexec/filters/ifhp
 :of=/usr/local/LPRng/libexec/filters/ifhp
 :bp=/usr/local/LPRng/libexec/filters/psbanner
 :achk
 :as=/usr/local/LPRng/libexec/filters/accfilter 
   :ifhp=model=hp4050,accounting=/usr/local/LPRng/libexec/filters/accfilter 
XX
 :tc='common


 At this point I would love to attach some logging output but the log files
 rotated before I got to them.  I shall send a copy as soon as it happens
 again.

Set 'max_log_file_size=1' or 10 meg.
This should be big enough...


 What seems to go wrong is that the students switch the printer off then on
 during a job.  The obvious fix is some user education but we're dealing
 with undergraduate students and that is not an option.  What seems to happen
   
:-)

 is thst ifhp correctly discovers that the printer has gone away and
 instigates a JFAIL for the job.  So far so good, but as soon as ifhp
 disapears LPRng restarts the of filter which then sits forever waiting to
 do the accounting which is never going to happen.  Eventually the 6000
 second timeout for the send job triggers and LPRng resets the queue.


OK... This appears to be something more subtle.  When the ifhp filter
gets an error, it will exit.  The TCP/IP connection should still
be open.

At this point the OF filter is woken up,  and sends a 'query' to the printer.
However,  it should get an 'error' at this point,  and should exit with
an error message.   I am puzzled why it does not.

--- Long pause while various experiments are tried...
--- OK, problem reproduced... sort of

The real problem seems to be that when the ifhp filter (either running as the
job filter or the of filter) has sent the 'return status when done' command
to the printer,  it sits and waits for a return status from the printer.
Unfortunately,  it will not get it as the printer will not spontaneously
return status information.   The TCP/IP 'keepalive' facility will cause
a 'empty' TCP/IP packet to be sent to the printer.  By default, the lpd
server sets 'keepalive' on all socket connections.  However,  this may not
be implemented, or may be the default timeout value is the
useless 2 hours (see Unix Network Programming, Second Edition, W. Richard Stevens,
Volume 1).

You can try to lower this value to something like 1 minute using the sysctl
facility or whatever you have on your system.  BEWARE!  This may have subtle
interactions with other network connections.  I blew a couple of high load TCP/IP
systems away doing this.

The problem is that you cannot PROVOKE a response from the printer
when it comes back up without sending something to it.

I have implemented a 'software time to live' option that is controlled
by the ifhp 'waitend_interval' value.

You might want to try:

pr:
  :ifhp=waitend_interval=60,model=...

This will send a probe to the printer every minute.  While it is NOT the best
way to handle this,  it WILL detect the fact that the printer has gone
away after 1 minute.  The bad news is that if the printer is off line,
then this might result in a 'bad job' report and the job being abandoned
(ifhp exits with error status).


 I'm not sure what I want to happen here.  Some ideas are:

 1.  If the if gets a JFAIL then the of is killed as well.
 2.  The of should timeout after 20 seconds of trying to get a response.
 3.  on JFAIL the job should be restarted rather than removed
 (I can see the option for this in the printcap but what happens
  after 3 attempts?)

 Thoughts?  Options?

 -- 
   __[EMAIL PROTECTED]Jonathan Knight,
 /  Department of Computer Science
/ _   __ Telephone: +44 1782 583437 University of Keele, Keele,
 (_/ (_) / / Fax  : +44 1782 713082 Staffordshire.  ST5 5BG.  U.K.

 -
 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 

Re: LPRng: Problem: waiting for subserver to exit

2002-03-19 Thread Phil Moses

Just a wild guess here but were the legacy print packages removed or moved
prior to the new lprng being installed, I swear I had seen this before whn
the solaris print packages were still in place. 

Thanks,

Phil Moses

On Tue, 19 Mar 2002, Sergij Kovalenko wrote:

 Hi,
 
 The problem appeared 3 month ago.  We were running LPRng-3.3.2?. Then I tried 
versions 3.7.4, 3.8.4
 and 3.8.9 on Solaris 2.6 and 8.
 The result and behavior is the same on all  versions of OS and LPRng.
 
 Text files are sent in a bounce queue in which they are processed using my filter,
 then files are sent in other queue. The first several files are printed without 
problems. At some
 time lately 'lpq'
 reports in original queue - job is 'active'(or later 'staled'), in other printer 
queue - job is
 'incoming'. Restarting of LPRng and
 other operations on queue dom't   help.
 
 If I remove filter processing from printcap, the problem disappears.
 
 Had anybody else such problem and resolved it?
 Could  it be a problem of Solaris?
 How can I debug LPRng in this situation?.
 
 Output of lpq:
 
 swadm03# lpq -Prezdruck1
 Printer: rezdruck1@swadm03 (dest xn2825-m202@localhost)
  Queue: 2 printable jobs
  Server: pid 17974 active
  Unspooler: pid 17975 active
  Status: waiting for subserver to exit at 17:01:20.147
  Filter_status: rezdruck_filter: Job finished. Run time: 0:1
  Rank   Owner/ID  Class Job Files Size Time
 stalled(1949sec) ==rezdruck@stielow+286.2.1 A 287 texc3.r1709462  4640 16:38:41
 2  ==rezdruck@stielow+287.2.1   A   288 texc3.r17094639011 16:38:43
 done   ==rezdruck@stielow+285.2.1   A   286 texc3.r17094617895 16:38:39
 Printer: xn2825-m202@swadm03
  Queue: no printable jobs in queue
  Server: no server active
  Status: job '==rezdruck@stielow+285.2.1' saved at 16:38:40.944
  Filter_status: done at 16:38:40.924
  Rank   Owner/ID  Class Job Files Size Time
 incoming ==rezdruck@stielow+286.2.1 A   287 texc3.r1709462   0 16:38:42
 done   ==rezdruck@stielow+285.2.1   A   286 texc3.r17094611159 16:38:40
 
 ---
 
 My printcap:
 ---
 .common1
 :qq
 :check_for_nonprintable@
 :save_on_error
 :send_failure_action=hold
 :sd=/spool/lpd/%P
 :lf=/spool/lpd/%P/lpd-errs
 :ifhp=banner_only@,banner@,config=/etc/ifhp.conf
 :filter_options=$C $A $F $H $J $K $L $P $Q $R -Zmountform=$-Q \
  -Z,$-O,$-Z $a $c $d $e $f $h $i $j $k $l $n $p $r $s $w $x $y $-a
 .xerox
 :rw:sh:mx#0
 :tc_only
 :sd=/spool/lpd/%P
 :lf=/spool/lpd/%P/lpd-errs
 :lp=/dev/null
 :ifhp=config=/etc/ifhp.conf
 
 rezdruck1:
 :tc=.common1
 :lpd_bounce
 :filter=/opt/LPRng/lib/filters/rezdruck_filter.pl
 :lp=xn2825-m202@localhost
 
 xn2825-m202:client:force_localhost@:rm=lpdstgt1
 xn2825-m202
 :server
 :save_when_done
 :tc=.xerox
 :if=/opt/LPRng/lib/filters/ifhp -Tbanner_only@ -Tbanner@
 -Tmodel=n2825
 -Tpjl_job
 :lp=/dev/null
 ---
 
 File status.pr of rezdruck1 queue:
 
 processing 'dfA287stielow', size 4640, format 'f', IF filter
 'rezdruck_filter.pl' at
 2002-03-11-16:38:41.887 ## A===rezdruck@stielow+286.2.1 number=287
 process=17975
 IF filter 'rezdruck_filter.pl' filter finished at
 2002-03-11-16:38:42.147 ##
 A===rezdruck@stielow+286.2.1 number=287 process=17975
 printing finished at 2002-03-11-16:38:42.148 ##
 A===rezdruck@stielow+286.2.1
 number=287 process=17975
 sending job '==rezdruck@stielow+286.2.1' to xn2825-m202@localhost at
 2002-03-11-16:38:42.154 ## A===rezdruck@stielow+286.2.1 number=287
 process=17975
 connecting to 'localhost', attempt 1 at 2002-03-11-16:38:42.154 ##
 A===rezdruck@stielow+286.2.1 number=287 process=17975
 connected to 'localhost' at 2002-03-11-16:38:42.163 ##
 A===rezdruck@stielow+286.2.1
 number=287 process=17975
 requesting printer xn2825-m202@localhost at 2002-03-11-16:38:42.163 ##
 A===rezdruck@stielow+286.2.1 number=287 process=17975
 sending control file 'cfA287stielow' to xn2825-m202@localhost at
 2002-03-11-16:38:42.168 ## A===rezdruck@stielow+286.2.1 number=287
 process=17975
 completed sending 'cfA287stielow' to xn2825-m202@localhost at
 2002-03-11-16:38:42.176 ## A===rezdruck@stielow+286.2.1 number=287
 process=17975
 sending data file 'dfA287stielow' to xn2825-m202@localhost at
 2002-03-11-16:38:42.176 ## A===rezdruck@stielow+286.2.1 number=287
 process=17975
 waiting for subserver to exit at 2002-03-11-16:38:43.722 ## A=NULL
 number=0
 process=17974
 waiting for subserver to exit at 2002-03-11-16:41:19.543 ## A=NULL
 number=0
 process=17974
 waiting for subserver to exit at 2002-03-11-16:51:15.178 ## A=NULL
 number=0
 process=17974
 
 
 Thanks in advance,
 
 Sergiy Kovalenko
 Firmengruppe Dr. Gueldener
 
 
 

Re: LPRng: Problem: waiting for subserver to exit

2002-03-19 Thread Thies Meincke

I observed a similiar behavior unfrequently. I think that is happening
while printing PDF Files, but I may be wrong.

For example here is a job from our queue lex1200c:

The status file status.lex1200c in the spool directory shows entries
like this:

status.lex1200c:waiting for subserver to exit at 2002-03-19-12:05:50.834 ## A=NULL 
number=0 process=19717
status.lex1200c:waiting for subserver to exit at 2002-03-19-12:06:09.859 ## A=NULL 
number=0 process=19717
status.lex1200c:waiting for subserver to exit at 2002-03-19-12:06:28.955 ## A=NULL 
number=0 process=19717
status.lex1200c:waiting for subserver to exit at 2002-03-19-12:06:47.415 ## A=NULL 
number=0 process=19717
status.lex1200c:waiting for subserver to exit at 2002-03-19-12:07:06.204 ## A=NULL 
number=0 process=19717
status.lex1200c:waiting for subserver to exit at 2002-03-19-12:07:24.879 ## A=NULL 
number=0 process=19717
status.lex1200c:waiting for subserver to exit at 2002-03-19-12:07:43.371 ## A=NULL 
number=0 process=19717
status.lex1200c:waiting for subserver to exit at 2002-03-19-12:08:02.400 ## A=NULL 
number=0 process=19717
status.lex1200c:waiting for subserver to exit at 2002-03-19-12:08:21.265 ## A=NULL 
number=0 process=19717
status.lex1200c:waiting for subserver to exit at 2002-03-19-12:08:39.722 ## A=NULL 
number=0 process=19717

while the account file acct shows that it took some time to print the
job:

jobstart '-Jpisa.pdf' '-Plex1200c' '-kcfA001KOERBERNB.erzwiss.uni-hamburg.de' 
'-b29593527' '-HKOERBERNB.erzwiss.uni-hamburg.de' '-t2002-03-19-11:48:58.000'  
'-nfe3a002'
filestart '-q19061' '-p53347' '-t2002-03-19-11:53:22.233' '-nfe3a002' '-Plex1200c'
fileend '-b240' '-T1588' '-q19061' '-p53587' '-t2002-03-19-12:19:50.866' '-nfe3a002' 
'-Plex1200c'
jobend '-Jpisa.pdf' '-Plex1200c' '-kcfA001KOERBERNB.erzwiss.uni-hamburg.de' 
'-b29593527' '-HKOERBERNB.erzwiss.uni-hamburg.de' '-t2002-03-19-12:19:50.000' 
'-Lfe3a002' '-nfe3a002'

We observed that sometimes the connected lpd process is consuming much cpu time
while these subserver-messages are written into status.*
Some jobs actually never get finished and must be cancelled.

For these (very rare) cases I wrote a short shell script which is looking
for lpd (Worker...) processes that have consumed more than 5 min cpu
time. Such a process is sent a kill -9 and so the job is cancelled.

Regards,

Thies Meincke

++---+
| Thies Meincke  | Tel.  : 040/42838-6355 (BN: 0.42838-6355) |
| Universitaet Hamburg   | Fax   : 040/42838-6270 (BN: 0.42838-6270) |
| Regionales Rechenzentrum   | E-mail: [EMAIL PROTECTED]|
| Schlueterstr. 70   | URL   : http://www.rrz.uni-hamburg.de/|
| 20146 Hamburg  | RRZ/Personal/TMeincke.html|
++---+

On Tue, 19 Mar 2002, Sergij Kovalenko wrote:

 Hi,

 The problem appeared 3 month ago.  We were running LPRng-3.3.2?. Then I tried 
versions 3.7.4, 3.8.4
 and 3.8.9 on Solaris 2.6 and 8.
 The result and behavior is the same on all  versions of OS and LPRng.

 Text files are sent in a bounce queue in which they are processed using my filter,
 then files are sent in other queue. The first several files are printed without 
problems. At some
 time lately 'lpq'
 reports in original queue - job is 'active'(or later 'staled'), in other printer 
queue - job is
 'incoming'. Restarting of LPRng and
 other operations on queue dom't   help.

 If I remove filter processing from printcap, the problem disappears.

 Had anybody else such problem and resolved it?
 Could  it be a problem of Solaris?
 How can I debug LPRng in this situation?.

 Output of lpq:

 swadm03# lpq -Prezdruck1
 Printer: rezdruck1@swadm03 (dest xn2825-m202@localhost)
  Queue: 2 printable jobs
  Server: pid 17974 active
  Unspooler: pid 17975 active
  Status: waiting for subserver to exit at 17:01:20.147
  Filter_status: rezdruck_filter: Job finished. Run time: 0:1
  Rank   Owner/ID  Class Job Files Size Time
 stalled(1949sec) ==rezdruck@stielow+286.2.1 A 287 texc3.r1709462  4640 16:38:41
 2  ==rezdruck@stielow+287.2.1   A   288 texc3.r17094639011 16:38:43
 done   ==rezdruck@stielow+285.2.1   A   286 texc3.r17094617895 16:38:39
 Printer: xn2825-m202@swadm03
  Queue: no printable jobs in queue
  Server: no server active
  Status: job '==rezdruck@stielow+285.2.1' saved at 16:38:40.944
  Filter_status: done at 16:38:40.924
  Rank   Owner/ID  Class Job Files Size Time
 incoming ==rezdruck@stielow+286.2.1 A   287 texc3.r1709462   0 16:38:42
 done   ==rezdruck@stielow+285.2.1   A   286 texc3.r17094611159 16:38:40

 ---

 My printcap:
 ---
 .common1
 :qq
 :check_for_nonprintable@
 :save_on_error
 

Re: LPRng: problem printing to remote printer

2001-10-09 Thread Dave Lovelace

Tomas Pluskal wrote:
 
 This looks quite real, I'll do some research this way.
 
 But still it means there are 2 problems:
 
 1) why lprng says the job was succesfully sent ?
 
 2) why is RedHat set (in default installation) to such limit ? (I know
 it's a question for RH developpers)
 
Hmm.  In my (not all *that* broad) experience, lp is the normal username
for running the lp subsystem on SYSV systems, but RH runs things like
this as daemon.  Certainly that's how lpd runs on our RH (6.2) system.
But I see that there is a user lp, and writes small test program
it doesn't look as though it has any special limit on # processes.
(Limit is set to 2048, AFAICS.)

I haven't ever had to play with process limits under RH, and I don't
know off hand how they're set.  I trust someone more knowledgeable
will tell us both, soon.

-- 
- Dave Lovelace
  [EMAIL PROTECTED]
  [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: problem printing to remote printer

2001-10-09 Thread Tomas Pluskal


On Mon, 8 Oct 2001, Dave Lovelace wrote:

 Tomas Pluskal wrote, in part:
 
  I tried running lpd -D10, and saw some messages like can't fork, but I
  don't know if this is related to the problem.
 
  Then I found out, that when I run LPD as root (normally it runs as lp
  user), it works OK !
 
  Does anybody have any idea what this means ?
 
 
 Well, *this* part of it means that there's some kind of limit on how many
 processes lp can run simultaneously - that limit not applying to root.
 The fork is the system call to create a sub-process.


This looks quite real, I'll do some research this way.

But still it means there are 2 problems:

1) why lprng says the job was succesfully sent ?

2) why is RedHat set (in default installation) to such limit ? (I know
it's a question for RH developpers)

bye

Tomas Pluskal



-
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 printing to remote printer

2001-10-09 Thread plusik


 Hmm.  In my (not all *that* broad) experience, lp is the normal username
 for running the lp subsystem on SYSV systems, but RH runs things like
 this as daemon.  Certainly that's how lpd runs on our RH (6.2) system.
 But I see that there is a user lp, and writes small test program
 it doesn't look as though it has any special limit on # processes.
 (Limit is set to 2048, AFAICS.)

 I haven't ever had to play with process limits under RH, and I don't
 know off hand how they're set.  I trust someone more knowledgeable
 will tell us both, soon.

I have tried a simple test today (su lp, fork, fork, fork...) and I can
confirm that there is no limit that would cause problems.

Unfortunately I can't experiment too much on the affected system, because
it's a running server with clients 24H/day, but I'll try something.

Tomas Pluskal



-
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 printing to remote printer

2001-10-08 Thread Dave Lovelace

Tomas Pluskal wrote, in part:
 
 I tried running lpd -D10, and saw some messages like can't fork, but I
 don't know if this is related to the problem.
 
 Then I found out, that when I run LPD as root (normally it runs as lp
 user), it works OK !
 
 Does anybody have any idea what this means ?
 
 
Well, *this* part of it means that there's some kind of limit on how many
processes lp can run simultaneously - that limit not applying to root.
The fork is the system call to create a sub-process.

-- 
- Dave Lovelace
  [EMAIL PROTECTED]
  [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: Problem compiling LPRNG 3.7.4 in Solaris 7

2001-08-29 Thread chad schrock



Osman, Mohamed wrote:
 
 I have mixed UNIX environment and was able to compile LPRNG 3.7.4
 in Linux, but it is not compiling correctly in Solaris 7.
 
 Below is the errors error messages when I attempt to do:
 
 make clean all
 
 Any idea why???

You need to use GNU make and not the system's make.



chad


--
chad at radix dot net

-
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 compiling ifhp 3.4 (fwd)

2001-04-17 Thread Dave Lovelace

Soo Hom wrote:
 
 Hi!  I gave that a try and got:
 
 checking disable stripped binaries... yes
 checking for gcc... (cached) /opt/SUNWspro/bin/cc
 checking whether the C compiler (/opt/SUNWspro/bin/cc -g -lresolve)
 works... no
 configure: error: installation or configuration problem: C compiler cannot
 create executables.
 montblanc# ls -las /opt/SUNWspro/bin/cc
2 lrwxrwxrwx   1 root other 15 Oct 19 15:19
 /opt/SUNWspro/bin/cc - ../SC4.2/bin/cc 
 montblanc# uname -a
 SunOS montblanc 5.7 Generic sun4u sparc SUNW,Ultra-5_10 
 
 Any ideas on how to fix this?
 
 Soo
 
Well, it's "-lresolv" (not "-lresolve" with an "e"), I think.

-- 
- Dave Lovelace
  [EMAIL PROTECTED]
  [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: problem compiling ifhp 3.4 (fwd)

2001-04-13 Thread Soo Hom

Hi!  I gave that a try and got:

checking disable stripped binaries... yes
checking for gcc... (cached) /opt/SUNWspro/bin/cc
checking whether the C compiler (/opt/SUNWspro/bin/cc -g -lresolve)
works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.
montblanc# ls -las /opt/SUNWspro/bin/cc
   2 lrwxrwxrwx   1 root other 15 Oct 19 15:19
/opt/SUNWspro/bin/cc - ../SC4.2/bin/cc 
montblanc# uname -a
SunOS montblanc 5.7 Generic sun4u sparc SUNW,Ultra-5_10 

Any ideas on how to fix this?

Soo



On Mon, 9 Apr 2001, Christoph Beyer wrote:

 hi,
 
 this worked for me
 
 ./configure --with-ldopts=-lresolv --with-cc=/opt/SUNWspro/bin/cc
 
 regards 
   ~Christoph
 
 
 
 Soo Hom schrieb:
  
  This worked.  Thanks!
  
  Soo
  
  On Mon, 2 Apr 2001, Rick Troxel wrote:
  
   I reported this as a bug about a month ago.  My "solution" was to settle
   for ifhp3.3.31.
  
   Best regards,
   --
 Rick Troxel  [EMAIL PROTECTED] 301/435-2983
   /
   All effort and exertion put forth by man from the fullness of his
   heart is worship, if it  is prompted  by the  highest motives and
   the will to do service to humanity. --Abdu'l-Baha
  
   Today (04/02/01), Soo Hom wrote:
  
   syhomI am compiling ifhp3.4 on a Sun and am getting this error:
   syhom
   syhomgcc ifhp.o accounting.o vars.o errormsg.o plp_snprintf.o
   syhomglobmatch.o open_device.o stty.o checkcode.o linelist.o
   syhom-lsocket -lnsl -o ifhp
   syhomUndefined   first referenced
   syhom symbol in file
   syhominet_ntop   open_device.o
   syhomld: fatal: Symbol referencing errors. No output written to ifhp
   syhomcollect2: ld returned 1 exit status
   syhomgmake[1]: *** [ifhp] Error 1
   syhomgmake[1]: Leaving directory `/local/ifhp3.4/src'
   syhomgmake: *** [src] Error 2
   syhom
   syhom
   syhomAny ideas on how to fix this?
   syhommontblanc# uname -a
   syhomSunOS montblanc 5.7 Generic sun4u sparc SUNW,Ultra-5_10
  
  
   -
   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.
  -
 
 -- 
 /*   Christoph Beyer |   Office: Building 2b / 23 *\ 
  *   DESY|Phone: 040-8998-2317*
  *   - IT -  |  Fax: 040-8998-4060*
 \*   22603 Hamburg   | http://www.desy.de */
 
 -
 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 

Re: LPRng: problem compiling ifhp 3.4

2001-04-13 Thread Soo Hom

Hi!  I gave that a try and got:

checking disable stripped binaries... yes
checking for gcc... (cached) /opt/SUNWspro/bin/cc
checking whether the C compiler (/opt/SUNWspro/bin/cc -g -lresolve)
works... no
configure: error: installation or configuration problem: C compiler cannot
create executables.
montblanc# ls -las /opt/SUNWspro/bin/cc
   2 lrwxrwxrwx   1 root other 15 Oct 19 15:19
/opt/SUNWspro/bin/cc - ../SC4.2/bin/cc 
montblanc# uname -a
SunOS montblanc 5.7 Generic sun4u sparc SUNW,Ultra-5_10 

Any ideas on how to fix this?

Soo



On Mon, 9 Apr 2001, Christoph Beyer wrote:

 hi,
 
 this worked for me
 
 ./configure --with-ldopts=-lresolv --with-cc=/opt/SUNWspro/bin/cc
 
 regards 
   ~Christoph
 
 
 
 Soo Hom schrieb:
  
  This worked.  Thanks!
  
  Soo
  
  On Mon, 2 Apr 2001, Rick Troxel wrote:
  
   I reported this as a bug about a month ago.  My "solution" was to settle
   for ifhp3.3.31.
  
   Best regards,
   --
 Rick Troxel  [EMAIL PROTECTED] 301/435-2983
   /
   All effort and exertion put forth by man from the fullness of his
   heart is worship, if it  is prompted  by the  highest motives and
   the will to do service to humanity. --Abdu'l-Baha
  
   Today (04/02/01), Soo Hom wrote:
  
   syhomI am compiling ifhp3.4 on a Sun and am getting this error:
   syhom
   syhomgcc ifhp.o accounting.o vars.o errormsg.o plp_snprintf.o
   syhomglobmatch.o open_device.o stty.o checkcode.o linelist.o
   syhom-lsocket -lnsl -o ifhp
   syhomUndefined   first referenced
   syhom symbol in file
   syhominet_ntop   open_device.o
   syhomld: fatal: Symbol referencing errors. No output written to ifhp
   syhomcollect2: ld returned 1 exit status
   syhomgmake[1]: *** [ifhp] Error 1
   syhomgmake[1]: Leaving directory `/local/ifhp3.4/src'
   syhomgmake: *** [src] Error 2
   syhom
   syhom
   syhomAny ideas on how to fix this?
   syhommontblanc# uname -a
   syhomSunOS montblanc 5.7 Generic sun4u sparc SUNW,Ultra-5_10
  
  
   -
   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.
  -
 
 -- 
 /*   Christoph Beyer |   Office: Building 2b / 23 *\ 
  *   DESY|Phone: 040-8998-2317*
  *   - IT -  |  Fax: 040-8998-4060*
 \*   22603 Hamburg   | http://www.desy.de */
 
 -
 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 

Re: LPRng: problem compiling ifhp 3.4

2001-04-13 Thread Rick Troxel

Yes; many thanks!

Do you happen to know a solution for RedHat Linux 6.x as well?

Best regards,
-- 
  Rick Troxel  [EMAIL PROTECTED] 301/435-2983
/
All effort and exertion put forth by man from the fullness of his
heart is worship, if it  is prompted  by the  highest motives and
the will to do service to humanity. --Abdu'l-Baha

Yesterday (04/09/01), Christoph Beyer wrote:

christophthis worked for me
christoph
christoph./configure --with-ldopts=-lresolv --with-cc=/opt/SUNWspro/bin/cc

Soo Hom schrieb:

 This worked.  Thanks!

 Soo

 On Mon, 2 Apr 2001, Rick Troxel wrote:

  I reported this as a bug about a month ago.  My "solution" was to
  settle for ifhp3.3.31.

  Today (04/02/01), Soo Hom wrote:
 
  I am compiling ifhp3.4 on a Sun and am getting this error:
  
  gcc ifhp.o accounting.o vars.o errormsg.o plp_snprintf.o
  globmatch.o open_device.o stty.o checkcode.o linelist.o
  -lsocket -lnsl -o ifhp
  Undefined   first referenced
   symbol in file
  inet_ntop   open_device.o
  ld: fatal: Symbol referencing errors. No output written to ifhp
  collect2: ld returned 1 exit status
  gmake[1]: *** [ifhp] Error 1
  gmake[1]: Leaving directory `/local/ifhp3.4/src'
  gmake: *** [src] Error 2

  Any ideas on how to fix this?
  montblanc# uname -a
  SunOS montblanc 5.7 Generic sun4u sparc SUNW,Ultra-5_10



-
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 compiling ifhp 3.4

2001-04-13 Thread Brandon S. Allbery KF8NH

On Monday, April 09, 2001 15:24:57 -0700, [EMAIL PROTECTED] wrote:
+
| checking whether the C compiler (/opt/SUNWspro/bin/cc -g -lresolve)
+---8

There is no such thing as "-lresolve"; for historical reasons it's 
"-lresolv".  Also, that should be in $LIBS instead of $CC or it will be 
seen too soon to be of use (libraries are searched when they are seen, so 
they should usually come *after* any source or object files).

-- 
brandon s. allbery [os/2][linux][solaris][japh]
[EMAIL PROTECTED] system administrator[WAY too many hats]
[EMAIL PROTECTED] electrical and computer engineering
KF8NH carnegie mellon university  ["better check the oblivious first"
-ke6sls]

-
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 compiling ifhp 3.4

2001-04-09 Thread Christoph Beyer

hi,

this worked for me

./configure --with-ldopts=-lresolv --with-cc=/opt/SUNWspro/bin/cc

regards 
~Christoph



Soo Hom schrieb:
 
 This worked.  Thanks!
 
 Soo
 
 On Mon, 2 Apr 2001, Rick Troxel wrote:
 
  I reported this as a bug about a month ago.  My "solution" was to settle
  for ifhp3.3.31.
 
  Best regards,
  --
Rick Troxel  [EMAIL PROTECTED] 301/435-2983
  /
  All effort and exertion put forth by man from the fullness of his
  heart is worship, if it  is prompted  by the  highest motives and
  the will to do service to humanity. --Abdu'l-Baha
 
  Today (04/02/01), Soo Hom wrote:
 
  syhomI am compiling ifhp3.4 on a Sun and am getting this error:
  syhom
  syhomgcc ifhp.o accounting.o vars.o errormsg.o plp_snprintf.o
  syhomglobmatch.o open_device.o stty.o checkcode.o linelist.o
  syhom-lsocket -lnsl -o ifhp
  syhomUndefined   first referenced
  syhom symbol in file
  syhominet_ntop   open_device.o
  syhomld: fatal: Symbol referencing errors. No output written to ifhp
  syhomcollect2: ld returned 1 exit status
  syhomgmake[1]: *** [ifhp] Error 1
  syhomgmake[1]: Leaving directory `/local/ifhp3.4/src'
  syhomgmake: *** [src] Error 2
  syhom
  syhom
  syhomAny ideas on how to fix this?
  syhommontblanc# uname -a
  syhomSunOS montblanc 5.7 Generic sun4u sparc SUNW,Ultra-5_10
 
 
  -
  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.
 -

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

-
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 compiling ifhp 3.4

2001-04-05 Thread Soo Hom

This worked.  Thanks!

Soo



On Mon, 2 Apr 2001, Rick Troxel wrote:

 I reported this as a bug about a month ago.  My "solution" was to settle
 for ifhp3.3.31.
 
 Best regards,
 -- 
   Rick Troxel  [EMAIL PROTECTED] 301/435-2983
 /
 All effort and exertion put forth by man from the fullness of his
 heart is worship, if it  is prompted  by the  highest motives and
 the will to do service to humanity. --Abdu'l-Baha
 
 Today (04/02/01), Soo Hom wrote:
 
 syhomI am compiling ifhp3.4 on a Sun and am getting this error:
 syhom
 syhomgcc ifhp.o accounting.o vars.o errormsg.o plp_snprintf.o
 syhomglobmatch.o open_device.o stty.o checkcode.o linelist.o
 syhom-lsocket -lnsl -o ifhp
 syhomUndefined   first referenced
 syhom symbol in file
 syhominet_ntop   open_device.o
 syhomld: fatal: Symbol referencing errors. No output written to ifhp
 syhomcollect2: ld returned 1 exit status
 syhomgmake[1]: *** [ifhp] Error 1
 syhomgmake[1]: Leaving directory `/local/ifhp3.4/src'
 syhomgmake: *** [src] Error 2
 syhom
 syhom
 syhomAny ideas on how to fix this?
 syhommontblanc# uname -a
 syhomSunOS montblanc 5.7 Generic sun4u sparc SUNW,Ultra-5_10
 
 
 -
 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: problem compiling ifhp 3.4

2001-04-02 Thread Rick Troxel

I reported this as a bug about a month ago.  My "solution" was to settle
for ifhp3.3.31.

Best regards,
-- 
  Rick Troxel  [EMAIL PROTECTED] 301/435-2983
/
All effort and exertion put forth by man from the fullness of his
heart is worship, if it  is prompted  by the  highest motives and
the will to do service to humanity. --Abdu'l-Baha

Today (04/02/01), Soo Hom wrote:

syhomI am compiling ifhp3.4 on a Sun and am getting this error:
syhom
syhomgcc ifhp.o accounting.o vars.o errormsg.o plp_snprintf.o
syhomglobmatch.o open_device.o stty.o checkcode.o linelist.o
syhom-lsocket -lnsl -o ifhp
syhomUndefined   first referenced
syhom symbol in file
syhominet_ntop   open_device.o
syhomld: fatal: Symbol referencing errors. No output written to ifhp
syhomcollect2: ld returned 1 exit status
syhomgmake[1]: *** [ifhp] Error 1
syhomgmake[1]: Leaving directory `/local/ifhp3.4/src'
syhomgmake: *** [src] Error 2
syhom
syhom
syhomAny ideas on how to fix this?
syhommontblanc# uname -a
syhomSunOS montblanc 5.7 Generic sun4u sparc SUNW,Ultra-5_10


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

2000-12-28 Thread papowell

 From [EMAIL PROTECTED] Wed Dec 27 10:04:50 2000
 From: John R Shannon [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: Problem with ifhp 3.4.4
 Date: Wed, 27 Dec 2000 09:39:48 -0700

 I noticed a problem after installing ifhp 3.4.4 - my job prints over and 
 over. lpq shows:

 Printer: lp@aslsystem
  Queue: 1 printable job
  Server: pid 1860 active
  Unspooler: pid 1887 active
  Status: processing 'dfA859aslsystem.johnrshannon.com', size 148304, format 
 'f', IF filter 'ifhp' at 09:29:20.323
  Filter_status: getting end using 'pjl job/eoj' at 09:29:23.536
  Rank   Owner/ID  Class Job Files Size Time
 active(attempt-3) john@aslsystem+859 A  859 (stdin) 148304 
 09:18:40   

 Does the attempt-3 mean that ifhp believes the previous two prints failed?

Yes.

You should use lpq -lll (each l adds a 'little more' status)
  or you can use lpq -L (go to 'Lots' of status)
to see more details.


 Configuration:
 LPRng-3.6.26
 Redhat 6.2 Linux with 2.2.17 kernel
 # /etc/printcap
 #  force clients (lpr, lpq, to use server)
 lp
 :[EMAIL PROTECTED]
 # server information
 lp:server
 :lp=192.168.1.6%9100
 :sd=/var/spool/lpd/lp
 :sh:mx=0
 :if=/usr/libexec/filters/ifhp
 :ifhp=model=hp4000

 
 -- 

 John R. Shannon
 [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: problem with 3.7.1 and gdbm

2000-12-24 Thread papowell

I have stared at this with no inspiration.

Could you please try LPRng 3.7.2 and tell me if the same problem exists?

Also, 3.7.3 has a --disable-gdbm option now.

 From [EMAIL PROTECTED] Fri Dec 15 12:35:40 2000
 Date: Fri, 15 Dec 2000 14:48:29 -0500
 From: John Harper [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: problem with 3.7.1 and gdbm

 I recently tried lprng 3.7.1 and had to bail back to 3.6.22 when it
 failed after a couple of hours of use. 

 3.7.1 uses gdbm (which I had to upgrade to 1.8.0) but after a time I
 found the following errors in the messages file:

 Dec  8 12:31:37 anemos.scar (Server)[21129]: cclaser: Open_gdbm: 
   cannot lock 'db.cclaser' - Interrupted system call
 Dec  8 13:34:54 anemos.scar (Server)[29856]: liblaser: Open_gdbm:
   cannot lock 'db.liblaser' - Interrupted system call
 Dec  8 14:39:06 anemos.scar (Worker - Remote)[29468]: quille: 
   Link_dest_port_num: LOGIC ERROR! no port number!

 and the whole print system ground to a halt - jobs would queue but
 nothing would print. Being an active system I didn't have time to play
 around, so this is all I have at the moment - the underlying OS is
 Solaris 7 and reasonably well patched.

 Now both cclaser and liblaser are queues that load balance by
 each forwarding to 2 other queues that drive real printers. It's these
 queues that will accumulate jobs, so I guess that's why the problems
 occurred there.

 quille, on the other hand, is a queue that drives a printer directly -
 but all these printers are handled by calling papif (from the CAP60
 distribution) from a Perl input filter (so accounting can be done), ie
 lpd makes no connection itself to the printer.
 So I don't really understand that error..

 I'm not even sure the problem is really lprng's so much as gdbm's -
 but I will try to suppress gdbm use by hiding the libraries (I'll take
 the performance hit as we are not generally high volume) - a configure
 flag to suppress gdbm would be nice
 It might depend on what sort of file locking gdbm builds with (looks
 like it's using fcntl - that ought to be good enough, however I have
 had occasional problems with fcntl locks in other apps)

 John Harper
 
 Academic Computing Coordinator
 University of Toronto at Scarborough
 [EMAIL PROTECTED]
 www.scar.utoronto.ca/~harper/

-
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 lp=|/path/to/program after 3.6.23

2000-11-30 Thread Jason L Tibbitts III

 "p" == papowell  [EMAIL PROTECTED] writes:

p Try the latest LPRng beta
p ftp://ftp.astart.com/pub/LPRng/private/LPRng-3.7.1beta...

I see that 3.7.1 is out, so I installed it and the problem has gone away.
Thanks a bunch!

 - J

-
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 end of document form feeds

2000-11-28 Thread papowell

#
#gs_uniprint driver
#
# Does the following for GhostScript:
#  gs @MODEL.upp -sOutputFile=- 
#
# Uses:
# gs_converter=  \%s{gs_unidriver}
# gs_unidriver =
#@GS@ -q -dSAFER -dBATCH -sOutputFile=- \ 
#@\%s{gs_device}.upp \%s{gs_options} -
#
#  set gs_device to MODEL and you will get the desired operation
#
#  The user can interface to this by using the ifhp options:
#
#  lp:
#:ifhp=model=gs_uniprint,gs_device=bjc610a0
#   gs -q ... @bjc619a0.upp -

Try using:

Printcap

sc800|st800 on server localhost
  :server:fq:ff_separator:direct_read:mx#0:ps=status
  :lp=/dev/lp1:sd=/usr/spool/lpd/sc800
  :filter=/usr/local/libexec/filters/ifhp
  :of=/usr/local/libexec/filters/ifhp
  #:ifhp=stc800.upp=ghostscript,gs_device=gs_uniprint
  :ifhp=model=gs_uniprint,gs_device=stc800


lq300
  :server:fq:ff_separator:direct_read:mx#0:ps=status
  :lp=/dev/lp0:sd=/usr/spool/lpd/lq300

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.astart.com)

 From [EMAIL PROTECTED] Thu Nov 16 11:31:10 2000
 Date: Thu, 16 Nov 2000 18:12:29 + (GMT)
 From: Keith Matthews [EMAIL PROTECTED]
 Subject: LPRng: Problem with end of document form feeds
 To: [EMAIL PROTECTED]

 I'm having some problems installing LPRng, system details given below.

 Without using filters I have got plain ASCII text to print correctly on
 both printers in the system (an LQ300 dot-matrix and a Stylus Color
 800), but found it necessary to add the fq' entry in the prntcap for
 both to get an end-of-document form feed.

 On adding the filter, the Stylus renders the document text correctly but
 refuses to add the form feed (I have not added the filter to the LQ as
 it seems worthless on such a printer).

 I'm sure this is a configuration issue but all my attempts have failed
 and I've now run out of ideas.


 System


 Definite Linux  (RH 6.1 clone) upgraded to 2.2.17 kernel

 LPRng 3.6.26 built from tarball
 ifhp 3.4.1 built from source rpm
 a2ps 4.13b built from tarball
 psutils 1.17 built from tarball


 Printcap

 sc800|st800 on server localhost
   :server:fq:ff_separator:direct_read:mx#0:ps=status
   :lp=/dev/lp1:sd=/usr/spool/lpd/sc800
   :filter=/usr/local/libexec/filters/ifhp
   :of=/usr/local/libexec/filters/ifhp
   :ifhp=stc800.upp=ghostscript,gs_device=gs_uniprint
 lq300
   :server:fq:ff_separator:direct_read:mx#0:ps=status
   :lp=/dev/lp0:sd=/usr/spool/lpd/lq300

 The of entry was added in desperation but seems to have had no effect. I
 have tried all ifhp device entries applicable to the Stylus color 800
 except the 1440 dpi version.


 --
 Keith MatthewsSpam trap

 Frequentous Consultants  - Linux Services, 
   Oracle development  database administration



 -
 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: Problem with lp=|/path/to/program after 3.6.23

2000-11-28 Thread papowell

Try the latest LPRng beta 
ftp://ftp.astart.com/pub/LPRng/private/LPRng-3.7.1beta...

and tell me if this problem still exists

 From [EMAIL PROTECTED] Tue Nov 14 16:18:36 2000
 Subject: LPRng: Problem with lp=|/path/to/program after 3.6.23
 To: [EMAIL PROTECTED]
 From: Jason L Tibbitts III [EMAIL PROTECTED]
 Date: 14 Nov 2000 17:08:49 -0600

 I have some old X terminals which are useful as print servers; you access
 them with a script like:

 #!/bin/sh
 /bin/cat | /usr/bin/rsh xterm opendev /dev/pp0

 and them put "lp=|/path/to/script" in your printcap.  This mostly works[1]
 in 3.6.23, but in 3.6.24 and 3.6.26 it fails.  The error goes:

  Status: opening device '|/etc/print-xt04' at 11:09:59.055
  Status: cannot open '|/etc/print-xt04' - 'No Error', attempt 1, sleeping 10 at 
11:09:59.056

 Simply downgrading to 3.6.23 makes this work again.  The script _is_ being
 called but no input is ever being passed to it.

 I'm running Red Hat Linux 7.0, the LPRng RPMs are straight from
 ftp.astart.com.  (Well, the 3.6.24 one came with RedHat, but it does some
 things differently and I only used it once to pinpoint the version where
 the problem started.)

 Any help would be appreciated.  I'm happy to crank up debugging or do other
 hacks as needed.

 1) For some reason the jobs aren't deleted after they've been printed, but
this is at worst a minor issue.

  - J

 -
 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: Problem with lp=|/path/to/program after 3.6.23

2000-11-28 Thread papowell

Right This was a 'cut and paste-o' and I think Frank sent me
the patch already...

 From [EMAIL PROTECTED] Wed Nov 15 01:10:01 2000
 From: Frank Botte [EMAIL PROTECTED]
 To: lprng [EMAIL PROTECTED]
 Subject: Re: LPRng: Problem with lp=|/path/to/program after 3.6.23
 Date: Wed, 15 Nov 2000 09:06:01 +0100


  Hello,

  i have noticed the same problem. There is some code missing in the
  file lpd_jobs.c. The filedescriptor is not set. Just add the following
  code at line 2251 (Version 3.6.26) of the lpd_jobs source.

  if( (close( in[0] ) == -1 ) ){
 LOGERR_DIE(LOG_INFO)"Printer_open: close(%d) failed", in[0]);
  }
  /* the following line is missing since 3.6.24 */
  device_fd = in[1] ;  /* patched by Frank Botte */
  break;

  This patch worked for me .

  bye
 Frank Botte


  Antwort-Abtrennung 
 Betreff:  LPRng: Problem with lp=|/path/to/program after 3.6.23
 Autor:[EMAIL PROTECTED] bei INTERNET
 Datum:15.11.00 01:53


 I have some old X terminals which are useful as print servers; you access
 them with a script like:

 #!/bin/sh
 /bin/cat | /usr/bin/rsh xterm opendev /dev/pp0

 and them put "lp=|/path/to/script" in your printcap.  This mostly works[1]
 in 3.6.23, but in 3.6.24 and 3.6.26 it fails.  The error goes:

  Status: opening device '|/etc/print-xt04' at 11:09:59.055
  Status: cannot open '|/etc/print-xt04' - 'No Error', attempt 1, sleeping 10 at
 11:09:59.056

 Simply downgrading to 3.6.23 makes this work again.  The script _is_ being
 called but no input is ever being passed to it.

 I'm running Red Hat Linux 7.0, the LPRng RPMs are straight from
 ftp.astart.com.  (Well, the 3.6.24 one came with RedHat, but it does some
 things differently and I only used it once to pinpoint the version where
 the problem started.)

 Any help would be appreciated.  I'm happy to crank up debugging or do other
 hacks as needed.

 1) For some reason the jobs aren't deleted after they've been printed, but
this is at worst a minor issue.

  - J

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


-
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 Laserjet Hp4000n

2000-10-23 Thread papowell

 From [EMAIL PROTECTED] Thu Oct 19 12:38:13 2000
 Date: Thu, 19 Oct 2000 14:22:46 -0200
 From: =?iso-8859-1?Q?Jos=E9?= Morelli Neto [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: LPRng: Problem with Laserjet Hp4000n

  Hi Matthias,

   

 [EMAIL PROTECTED] wrote:
  
  Hi Neto,
  
 I have a problem with my printer. I have a HP laserjet 4000n and i want to
   get the pagecounter, but my printer don´t return this value. It´s conected by a
   parallel conection with a bidirectional cable.
 Anyone know why i don´t get it?? it´s a problem with this model of HP??
  
  I am using a 4000N, too, but I am connected to it using ethernet, I
  am having troubles with the acct-file at the moment (incomplete acct-file),
  but the hp4000 is exactly acting like every other hp I am using. I also
  can get the pagecounter.
  
  Bye,Matthias
  

   When i connect my printer by network, i also can get the pagecounter
 too, but my
 problem is because the script that i use send the job to a lpt port.
 This script is very
 important to me, because it's control my database.

   There is one way to receive de pagecounter by parallel connection???

The brief answer is:  No, not reliably.

Sorry about that.



   Thank's
 Neto

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.astart.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: Problem with Laserjet Hp4000n

2000-10-19 Thread Matthias . Kehlenbeck

Hi Neto,

   I have a problem with my printer. I have a HP laserjet 4000n and i want to 
 get the pagecounter, but my printer don´t return this value. It´s conected by a 
 parallel conection with a bidirectional cable. 
   Anyone know why i don´t get it?? it´s a problem with this model of HP??

I am using a 4000N, too, but I am connected to it using ethernet, I
am having troubles with the acct-file at the moment (incomplete acct-file),
but the hp4000 is exactly acting like every other hp I am using. I also
can get the pagecounter.

Bye,Matthias

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

2000-10-12 Thread David Livingstone


 Found the solution !!

 On the ExtendNet external print servers there is a port configuration parameter
 for "Language Switching"(ie PCL/PS), on mine the value was set to "Auto". The trick
 is to set this to "off". Now the "pjl echo" is returned almost immediately. Obviously 
the
 transfer time does not improve. I verified this with other setups. Suggest you add 
this
 to the documentation ...

 Question : What arguments can I use to persuade our IT department to switch from 
external
ExtendNet print servers to internal JetDirect cards ?



[EMAIL PROTECTED] wrote:
 
  From [EMAIL PROTECTED] Fri Oct  6 07:25:37 2000
  From: David Livingstone [EMAIL PROTECTED]
  Subject: Re: LPRng: Problem with ifhp-3.3.21
  To: [EMAIL PROTECTED]
  Date: Fri, 6 Oct 2000 09:07:02 -0400 (EDT)
 
 
   Yes there may be a problem with the printer but the point
   was and still is :
 
   - 3.3.21 does not work as per emails.
   - the below setup is with 3.3.20 and also as noted only works with
 status enabled(ie status@) causes the below jobs to fail.
   - with the original config(please see earlier emails) the printer
 works for all jobs but without status.
   - for other printer protocols(ie vines) the printer works without
 a glitch or delays.
 
 I gather that your printer is actually on a parallel port of a
 print server box.  I have found that the 'bidirectional' support
 for these boxes can be very 'slow' when you want status.  Apparently
 what happens is the box needs to turn the parallel port around.
 It has no knowledge of the 'need' to do this,  so it simply uses
 a simple timeout mechanism:  after N seconds without writing to the
 parallel port (N seconds idle) try to read status from the port.
 
 There might be a way to configure N so that it is small (N = 5
 is usually about right),  but in general I have had little luck
 doing this.
 
 I strongly recommend that you use an internal JetDirect or other
 card that plugs into the printer.  This will directly place data
 into an internal buffer and will read status and error information
 from an internal buffer,  and act as a true full duplex data channel
 to the printer.
 
  
From [EMAIL PROTECTED] Wed Oct  4 13:14:04 2000
Date: Wed, 04 Oct 2000 18:45:21 +
From: David Livingstone [EMAIL PROTECTED]
    To: [EMAIL PROTECTED]
Subject: Re: LPRng: Problem with ifhp-3.3.21
   
   
 My apologies ... I spoke too soon. On small jobs everything appears to work. 
On larger
 jobs in PS only some or none of the output is printed. However in these cases 
the
 status according to LPRng is okay - ie sent correctly and removed from queue. 
However
 on the printer the status is still the name of the user who sent the file, ie 
root, and
 it stays that way until the printer is sent another job.
   
 If I remove the status@ the job does print properly(and the pagecount is 
updated). However
 at this point I am back to the problem of the printer taking 2 minutes to 
complete !
   
using model 'hp8000' at 14:31:20.531
pagecount using 'pjl info pagecount' at 14:31:20.533
setting up printer at 14:31:20.533
getting sync using 'pjl echo' at 14:31:20.533
sync done at 14:33:03.274
pagecounter 118788 at 14:33:03.275
pagecounter 118788 at 14:33:03.275
sending job file at 14:33:03.276
starting transfer at 14:33:03.276
initial job type 'POSTSCRIPT' at 14:33:03.276
decoded job type 'POSTSCRIPT' at 14:33:03.276
job type 'POSTSCRIPT' at 14:33:03.276
transferring 141754 bytes at 14:33:03.277
28 percent done at 14:33:03.279
57 percent done at 14:33:04.235
86 percent done at 14:33:05.758
data sent at 14:33:06.875
sent job file at 14:33:06.875
getting end using 'pjl job/eoj' at 14:33:06.876
end of job detected at 14:33:38.909
pagecounter 118790 at 14:33:39.406
pagecounter 118790, pages 2 at 14:33:39.406
done at 14:33:39.407
   
  
   Well,  you can see what is happening here:
  
getting sync using 'pjl echo' at 14:31:20.533
sync done at 14:33:03.274
  
   This is where things are nasty - it took over a minute to wake up
   and respond!
  
pagecounter 118788 at 14:33:03.275
pagecounter 118788 at 14:33:03.275
sending job file at 14:33:03.276
  
   And the page counter getting was probably part of the same message
  
sent job file at 14:33:06.875
  
   This is slow,  3 secs for 141K, but it got there...
  
getting end using 'pjl job/eoj' at 14:33:06.876
  
   Well,  it thinks that the printer started responding after 30 seconds,
   and the paper path is flushed.
  
end of job detected at 14:33:38.909
  
   And it takes its time responding with the page counter value.
  
pagecounter 118790 at 14:33:39.406
  
   Which it did and
pagecounter 118790, pages 2 at 14:33:39.406
done at 14:33:39.407
  
   You started getting responses at:
sync don

Re: LPRng: Problem with ifhp-3.3.21

2000-10-09 Thread papowell

 From [EMAIL PROTECTED] Fri Oct  6 07:25:37 2000
 From: David Livingstone [EMAIL PROTECTED]
 Subject: Re: LPRng: Problem with ifhp-3.3.21
 To: [EMAIL PROTECTED]
 Date: Fri, 6 Oct 2000 09:07:02 -0400 (EDT)


  Yes there may be a problem with the printer but the point
  was and still is :

  - 3.3.21 does not work as per emails.
  - the below setup is with 3.3.20 and also as noted only works with
status enabled(ie status@) causes the below jobs to fail.
  - with the original config(please see earlier emails) the printer
works for all jobs but without status. 
  - for other printer protocols(ie vines) the printer works without
a glitch or delays.

I gather that your printer is actually on a parallel port of a
print server box.  I have found that the 'bidirectional' support
for these boxes can be very 'slow' when you want status.  Apparently
what happens is the box needs to turn the parallel port around.
It has no knowledge of the 'need' to do this,  so it simply uses
a simple timeout mechanism:  after N seconds without writing to the
parallel port (N seconds idle) try to read status from the port.

There might be a way to configure N so that it is small (N = 5
is usually about right),  but in general I have had little luck
doing this.

I strongly recommend that you use an internal JetDirect or other
card that plugs into the printer.  This will directly place data
into an internal buffer and will read status and error information
from an internal buffer,  and act as a true full duplex data channel
to the printer.


  
   From [EMAIL PROTECTED] Wed Oct  4 13:14:04 2000
   Date: Wed, 04 Oct 2000 18:45:21 +
   From: David Livingstone [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: Re: LPRng: Problem with ifhp-3.3.21
  
  
My apologies ... I spoke too soon. On small jobs everything appears to work. On 
larger
jobs in PS only some or none of the output is printed. However in these cases 
the
status according to LPRng is okay - ie sent correctly and removed from queue. 
However
on the printer the status is still the name of the user who sent the file, ie 
root, and
it stays that way until the printer is sent another job. 
  
If I remove the status@ the job does print properly(and the pagecount is 
updated). However
at this point I am back to the problem of the printer taking 2 minutes to 
complete !
  
   using model 'hp8000' at 14:31:20.531
   pagecount using 'pjl info pagecount' at 14:31:20.533
   setting up printer at 14:31:20.533
   getting sync using 'pjl echo' at 14:31:20.533
   sync done at 14:33:03.274
   pagecounter 118788 at 14:33:03.275
   pagecounter 118788 at 14:33:03.275
   sending job file at 14:33:03.276
   starting transfer at 14:33:03.276
   initial job type 'POSTSCRIPT' at 14:33:03.276
   decoded job type 'POSTSCRIPT' at 14:33:03.276
   job type 'POSTSCRIPT' at 14:33:03.276
   transferring 141754 bytes at 14:33:03.277
   28 percent done at 14:33:03.279
   57 percent done at 14:33:04.235
   86 percent done at 14:33:05.758
   data sent at 14:33:06.875
   sent job file at 14:33:06.875
   getting end using 'pjl job/eoj' at 14:33:06.876
   end of job detected at 14:33:38.909
   pagecounter 118790 at 14:33:39.406
   pagecounter 118790, pages 2 at 14:33:39.406
   done at 14:33:39.407
  
  
  Well,  you can see what is happening here:
  
   getting sync using 'pjl echo' at 14:31:20.533
   sync done at 14:33:03.274
  
  This is where things are nasty - it took over a minute to wake up
  and respond!
  
   pagecounter 118788 at 14:33:03.275
   pagecounter 118788 at 14:33:03.275
   sending job file at 14:33:03.276
  
  And the page counter getting was probably part of the same message
  
   sent job file at 14:33:06.875
  
  This is slow,  3 secs for 141K, but it got there...
  
   getting end using 'pjl job/eoj' at 14:33:06.876
  
  Well,  it thinks that the printer started responding after 30 seconds,
  and the paper path is flushed.
  
   end of job detected at 14:33:38.909
  
  And it takes its time responding with the page counter value.
  
   pagecounter 118790 at 14:33:39.406
  
  Which it did and
   pagecounter 118790, pages 2 at 14:33:39.406
   done at 14:33:39.407
  
  You started getting responses at:
   sync done at 14:33:03.274
   done  at 14:33:39.407
  
  This is about 37 seconds.
  
  I don't know why it takes the HP this long to respond.
  
  Perhaps a trouble call to HP?
  
  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.astart.com)
  
  -
  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

Re: LPRng: Problem with ifhp-3.3.21

2000-10-06 Thread David Livingstone


 Yes there may be a problem with the printer but the point
 was and still is :

 - 3.3.21 does not work as per emails.
 - the below setup is with 3.3.20 and also as noted only works with
   status enabled(ie status@) causes the below jobs to fail.
 - with the original config(please see earlier emails) the printer
   works for all jobs but without status. 
 - for other printer protocols(ie vines) the printer works without
   a glitch or delays.
 
  From [EMAIL PROTECTED] Wed Oct  4 13:14:04 2000
  Date: Wed, 04 Oct 2000 18:45:21 +
  From: David Livingstone [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: LPRng: Problem with ifhp-3.3.21
 
 
   My apologies ... I spoke too soon. On small jobs everything appears to work. On 
larger
   jobs in PS only some or none of the output is printed. However in these cases the
   status according to LPRng is okay - ie sent correctly and removed from queue. 
However
   on the printer the status is still the name of the user who sent the file, ie 
root, and
   it stays that way until the printer is sent another job. 
 
   If I remove the status@ the job does print properly(and the pagecount is 
updated). However
   at this point I am back to the problem of the printer taking 2 minutes to 
complete !
 
  using model 'hp8000' at 14:31:20.531
  pagecount using 'pjl info pagecount' at 14:31:20.533
  setting up printer at 14:31:20.533
  getting sync using 'pjl echo' at 14:31:20.533
  sync done at 14:33:03.274
  pagecounter 118788 at 14:33:03.275
  pagecounter 118788 at 14:33:03.275
  sending job file at 14:33:03.276
  starting transfer at 14:33:03.276
  initial job type 'POSTSCRIPT' at 14:33:03.276
  decoded job type 'POSTSCRIPT' at 14:33:03.276
  job type 'POSTSCRIPT' at 14:33:03.276
  transferring 141754 bytes at 14:33:03.277
  28 percent done at 14:33:03.279
  57 percent done at 14:33:04.235
  86 percent done at 14:33:05.758
  data sent at 14:33:06.875
  sent job file at 14:33:06.875
  getting end using 'pjl job/eoj' at 14:33:06.876
  end of job detected at 14:33:38.909
  pagecounter 118790 at 14:33:39.406
  pagecounter 118790, pages 2 at 14:33:39.406
  done at 14:33:39.407
 
 
 Well,  you can see what is happening here:
 
  getting sync using 'pjl echo' at 14:31:20.533
  sync done at 14:33:03.274
 
 This is where things are nasty - it took over a minute to wake up
 and respond!
 
  pagecounter 118788 at 14:33:03.275
  pagecounter 118788 at 14:33:03.275
  sending job file at 14:33:03.276
 
 And the page counter getting was probably part of the same message
 
  sent job file at 14:33:06.875
 
 This is slow,  3 secs for 141K, but it got there...
 
  getting end using 'pjl job/eoj' at 14:33:06.876
 
 Well,  it thinks that the printer started responding after 30 seconds,
 and the paper path is flushed.
 
  end of job detected at 14:33:38.909
 
 And it takes its time responding with the page counter value.
 
  pagecounter 118790 at 14:33:39.406
 
 Which it did and
  pagecounter 118790, pages 2 at 14:33:39.406
  done at 14:33:39.407
 
 You started getting responses at:
  sync done at 14:33:03.274
  done  at 14:33:39.407
 
 This is about 37 seconds.
 
 I don't know why it takes the HP this long to respond.
 
 Perhaps a trouble call to HP?
 
 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.astart.com)
 
 -
 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.
 -
 


-- 

David Kerr Livingstone 
Canadian National Railway, Signals  Communications
935 de La Gauchetiere St. West
12th Floor
Montreal, Quebec, Canada
H3B-2M9
Phone : (514)399-7731  Fax : (514)399-7503
Internet : [EMAIL PROTECTED]

-
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

Re: LPRng: Problem with ifhp-3.3.21

2000-10-05 Thread papowell

 From [EMAIL PROTECTED] Wed Oct  4 13:14:04 2000
 Date: Wed, 04 Oct 2000 18:45:21 +
 From: David Livingstone [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: LPRng: Problem with ifhp-3.3.21


  My apologies ... I spoke too soon. On small jobs everything appears to work. On 
larger
  jobs in PS only some or none of the output is printed. However in these cases the
  status according to LPRng is okay - ie sent correctly and removed from queue. 
However
  on the printer the status is still the name of the user who sent the file, ie root, 
and
  it stays that way until the printer is sent another job. 

  If I remove the status@ the job does print properly(and the pagecount is updated). 
However
  at this point I am back to the problem of the printer taking 2 minutes to complete !

 using model 'hp8000' at 14:31:20.531
 pagecount using 'pjl info pagecount' at 14:31:20.533
 setting up printer at 14:31:20.533
 getting sync using 'pjl echo' at 14:31:20.533
 sync done at 14:33:03.274
 pagecounter 118788 at 14:33:03.275
 pagecounter 118788 at 14:33:03.275
 sending job file at 14:33:03.276
 starting transfer at 14:33:03.276
 initial job type 'POSTSCRIPT' at 14:33:03.276
 decoded job type 'POSTSCRIPT' at 14:33:03.276
 job type 'POSTSCRIPT' at 14:33:03.276
 transferring 141754 bytes at 14:33:03.277
 28 percent done at 14:33:03.279
 57 percent done at 14:33:04.235
 86 percent done at 14:33:05.758
 data sent at 14:33:06.875
 sent job file at 14:33:06.875
 getting end using 'pjl job/eoj' at 14:33:06.876
 end of job detected at 14:33:38.909
 pagecounter 118790 at 14:33:39.406
 pagecounter 118790, pages 2 at 14:33:39.406
 done at 14:33:39.407


Well,  you can see what is happening here:

 getting sync using 'pjl echo' at 14:31:20.533
 sync done at 14:33:03.274

This is where things are nasty - it took over a minute to wake up
and respond!

 pagecounter 118788 at 14:33:03.275
 pagecounter 118788 at 14:33:03.275
 sending job file at 14:33:03.276

And the page counter getting was probably part of the same message

 sent job file at 14:33:06.875

This is slow,  3 secs for 141K, but it got there...

 getting end using 'pjl job/eoj' at 14:33:06.876

Well,  it thinks that the printer started responding after 30 seconds,
and the paper path is flushed.

 end of job detected at 14:33:38.909

And it takes its time responding with the page counter value.

 pagecounter 118790 at 14:33:39.406

Which it did and
 pagecounter 118790, pages 2 at 14:33:39.406
 done at 14:33:39.407

You started getting responses at:
 sync done at 14:33:03.274
 done  at 14:33:39.407

This is about 37 seconds.

I don't know why it takes the HP this long to respond.

Perhaps a trouble call to HP?

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.astart.com)

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

2000-10-04 Thread David Livingstone


 My apologies ... I spoke too soon. On small jobs everything appears to work. On larger
 jobs in PS only some or none of the output is printed. However in these cases the
 status according to LPRng is okay - ie sent correctly and removed from queue. However
 on the printer the status is still the name of the user who sent the file, ie root, 
and
 it stays that way until the printer is sent another job. 

 If I remove the status@ the job does print properly(and the pagecount is updated). 
However
 at this point I am back to the problem of the printer taking 2 minutes to complete !

using model 'hp8000' at 14:31:20.531
pagecount using 'pjl info pagecount' at 14:31:20.533
setting up printer at 14:31:20.533
getting sync using 'pjl echo' at 14:31:20.533
sync done at 14:33:03.274
pagecounter 118788 at 14:33:03.275
pagecounter 118788 at 14:33:03.275
sending job file at 14:33:03.276
starting transfer at 14:33:03.276
initial job type 'POSTSCRIPT' at 14:33:03.276
decoded job type 'POSTSCRIPT' at 14:33:03.276
job type 'POSTSCRIPT' at 14:33:03.276
transferring 141754 bytes at 14:33:03.277
28 percent done at 14:33:03.279
57 percent done at 14:33:04.235
86 percent done at 14:33:05.758
data sent at 14:33:06.875
sent job file at 14:33:06.875
getting end using 'pjl job/eoj' at 14:33:06.876
end of job detected at 14:33:38.909
pagecounter 118790 at 14:33:39.406
pagecounter 118790, pages 2 at 14:33:39.406
done at 14:33:39.407


David Livingstone wrote:
 
  Further update ... installed 3.6.24 and 3.3.21 on a "clean" rh 6.2 system
  and exactly the same thing occurs. Using the tried and true elimination
  method I removed 3.3.21 and installed 3.3.20 - everything now works !
  What changed in 3.3.21 to cause the below failure ?
 
 David Livingstone wrote:
 
   As per our conversation I "completely" removed all lprng,ifhp packages and
   reinstalled 3.6.24 and 3.3.21 as below. Same result with identical results(ie
   same status, status.deslz files). I am "sure" there was no residual lpd packages
   on the system.
 
   If in the printcap I comment out the bp,ifhp, and if lines then printing works.
 
   Any ideas where to look ? The only difference in what you attempted to my setup
   is 3.6.26(where is that?) and the fact that I am printing to a extendnet print
   server and you to a jetdirect card.
 
  [EMAIL PROTECTED] wrote:
  
From [EMAIL PROTECTED] Tue Sep 26 07:14:15 2000
From: David Livingstone [EMAIL PROTECTED]
Subject: LPRng: Problem with ifhp-3.3.21
To: [EMAIL PROTECTED]
Date: Tue, 26 Sep 2000 08:55:12 -0400 (EDT)
Cc: [EMAIL PROTECTED]
   
   
   
 Posted this on the 14-15th originally and never saw a response ... here
 it is again ...
   
 In an effort to solve a problem I upgraded both ifhp and lprng and found
 another problem !
   
 Original config : LPRng-3.6.19 and ifhp-3.3.17
 new config  : LPRng-3.6.24 and ifhp-3.3.21
   
 Loaded on a redhat 6.2 system attempting to print to a HP8000 connected
 to a extendnet print server. Packages were all loaded via rpm.
   
 With the old configuration and the following printcap I could print
 successfully :
deslz:
 :lp=deslz%9100
 :sd=/usr/spool/lpd/deslz
 :mx#0
 :bp=/usr/libexec/filters/pclbanner
 :ifhp=model=hp8000,status@
 :if=/usr/libexec/filters/ifhp
  
   I copied this and it worked with the setup
  LPRng-3.6.26 and ifhp-3.3.21...  Strange...
  
   
 However with the new configuration printing fails. I get the banner
 page(ie from pclbanner) but no file printed. This happens three times
 before the job appears to be removed.
   
 Below I include the status files from /usr/spool/lpd/deslz and the new
 config.
   
 Any ideas ?
   
 The original problem I was trying to solve was how to print from any other 
input
 tray then the default ie letter in tray 2. The printer(from the config page) 
has
 letter in tray 2 and 11x17 in tray 3.
   
 With the original config I attempted :
 lp -oinlower file
 lp -ointray3 file
 lp -o11x17 file
 lp -opaper=11x17 file
   
 All with no success ... thought that maybe an upgrade to 21 was the answer :(
   
1. File "status" follows :
   
using model 'hp8000' at 13:47:04.207
pagecount using 'pjl info pagecount' at 13:47:04.210
setting up printer at 13:47:04.210
getting sync using 'pjl echo' at 13:47:04.210
no response from printer at 13:47:24.205
using model 'hp8000' at 13:47:34.301
pagecount using 'pjl info pagecount' at 13:47:34.304
setting up printer at 13:47:34.304
getting sync using 'pjl echo' at 13:47:34.304
no response from printer at 13:47:54.296
using model 'hp8000' at 13:48:14.396
pagecount using 'pjl info pagecount' at 13:48:14.398
setting up printer at 13:48:14.398
getting sync using 'pjl echo' at 13:48:14.398
  
    for some reason it is not getting the ifhp 

Re: LPRng: Problem with ifhp-3.3.21

2000-10-03 Thread papowell

 From [EMAIL PROTECTED] Tue Sep 26 07:14:15 2000
 From: David Livingstone [EMAIL PROTECTED]
 Subject: LPRng: Problem with ifhp-3.3.21
 To: [EMAIL PROTECTED]
 Date: Tue, 26 Sep 2000 08:55:12 -0400 (EDT)
 Cc: [EMAIL PROTECTED]



  Posted this on the 14-15th originally and never saw a response ... here
  it is again ...

  In an effort to solve a problem I upgraded both ifhp and lprng and found
  another problem !

  Original config : LPRng-3.6.19 and ifhp-3.3.17
  new config  : LPRng-3.6.24 and ifhp-3.3.21

  Loaded on a redhat 6.2 system attempting to print to a HP8000 connected
  to a extendnet print server. Packages were all loaded via rpm.

  With the old configuration and the following printcap I could print
  successfully :
 deslz:
  :lp=deslz%9100
  :sd=/usr/spool/lpd/deslz
  :mx#0
  :bp=/usr/libexec/filters/pclbanner
  :ifhp=model=hp8000,status@
  :if=/usr/libexec/filters/ifhp

I copied this and it worked with the setup
   LPRng-3.6.26 and ifhp-3.3.21...  Strange...


  However with the new configuration printing fails. I get the banner
  page(ie from pclbanner) but no file printed. This happens three times
  before the job appears to be removed.

  Below I include the status files from /usr/spool/lpd/deslz and the new
  config.

  Any ideas ?

  The original problem I was trying to solve was how to print from any other input
  tray then the default ie letter in tray 2. The printer(from the config page) has
  letter in tray 2 and 11x17 in tray 3.

  With the original config I attempted :
  lp -oinlower file
  lp -ointray3 file
  lp -o11x17 file
  lp -opaper=11x17 file

  All with no success ... thought that maybe an upgrade to 21 was the answer :(

 1. File "status" follows :

 using model 'hp8000' at 13:47:04.207
 pagecount using 'pjl info pagecount' at 13:47:04.210
 setting up printer at 13:47:04.210
 getting sync using 'pjl echo' at 13:47:04.210
 no response from printer at 13:47:24.205
 using model 'hp8000' at 13:47:34.301
 pagecount using 'pjl info pagecount' at 13:47:34.304
 setting up printer at 13:47:34.304
 getting sync using 'pjl echo' at 13:47:34.304
 no response from printer at 13:47:54.296
 using model 'hp8000' at 13:48:14.396
 pagecount using 'pjl info pagecount' at 13:48:14.398
 setting up printer at 13:48:14.398
 getting sync using 'pjl echo' at 13:48:14.398

 for some reason it is not getting the ifhp information from the printcap...

 no response from printer at 13:48:34.398


 2. File "status.deslz" follows :

 waiting for subserver to exit at 2000-09-15-13:47:04.139 ## A=NULL number=0 
process=334
 subserver pid 335 starting at 2000-09-15-13:47:04.143 ## A=root@scdev+332 number=332 
process=335
 accounting at start at 2000-09-15-13:47:04.143 ## A=root@scdev+332 number=332 
process=335
 opening device 'deslz%9100' at 2000-09-15-13:47:04.144 ## A=root@scdev+332 
number=332 process=335
 printing job 'root@scdev+332' at 2000-09-15-13:47:04.163 ## A=root@scdev+332 
number=332 process=335
 processing 'dfA332scdev.cn.ca', size 4100, format 'f', IF filter 'ifhp' at 
2000-09-15-13:47:04.163 ## A=root@scdev+332 number=332 process=335
 IF filter 'ifhp' filter msg - 'ifhp 13:47:24.205 [337] Do_sync: no response from 
printer' at 2000-09-15-13:47:24.206 ## A=root@scdev+332 number=332 process=335
 IF filter 'ifhp' filter exit status 'JFAIL' at 2000-09-15-13:47:24.207 ## 
A=root@scdev+332 number=332 process=335
 printing finished at 2000-09-15-13:47:24.207 ## A=root@scdev+332 number=332 
process=335
 accounting at end at 2000-09-15-13:47:24.213 ## A=root@scdev+332 number=332 
process=335
 finished 'root@scdev+332', status 'JFAIL' at 2000-09-15-13:47:24.214 ## 
A=root@scdev+332 number=332 process=335
 subserver pid 335 exit status 'JFAIL' at 2000-09-15-13:47:24.216 ## A=NULL 
number=0 process=334
 job 'root@scdev+332' attempt 1 of 3, retrying at 2000-09-15-13:47:24.218 ## 
A=root@scdev+332 number=332 process=334
 waiting for subserver to exit at 2000-09-15-13:47:24.229 ## A=NULL number=0 
process=334
 attempt 2, sleeping 10 before retry at 2000-09-15-13:47:24.233 ## A=root@scdev+332 
number=332 process=338
 subserver pid 338 starting at 2000-09-15-13:47:34.236 ## A=root@scdev+332 number=332 
process=338
 accounting at start at 2000-09-15-13:47:34.236 ## A=root@scdev+332 number=332 
process=338
 opening device 'deslz%9100' at 2000-09-15-13:47:34.236 ## A=root@scdev+332 
number=332 process=338
 printing job 'root@scdev+332' at 2000-09-15-13:47:34.262 ## A=root@scdev+332 
number=332 process=338
 processing 'dfA332scdev.cn.ca', size 4100, format 'f', IF filter 'ifhp' at 
2000-09-15-13:47:34.262 ## A=root@scdev+332 number=332 process=338
 IF filter 'ifhp' filter msg - 'ifhp 13:47:54.296 [339] Do_sync: no response from 
printer' at 2000-09-15-13:47:54.297 ## A=root@scdev+332 number=332 process=338
 IF filter 'ifhp' filter exit status 'JFAIL' at 2000-09-15-13:47:54.298 ## 
A=root@scdev+332 number=332 process=338
 printing finished at 

Re: LPRng: Problem with ifhp-3.3.21

2000-10-03 Thread David Livingstone


 As per our conversation I "completely" removed all lprng,ifhp packages and
 reinstalled 3.6.24 and 3.3.21 as below. Same result with identical results(ie
 same status, status.deslz files). I am "sure" there was no residual lpd packages
 on the system.

 If in the printcap I comment out the bp,ifhp, and if lines then printing works.

 Any ideas where to look ? The only difference in what you attempted to my setup
 is 3.6.26(where is that?) and the fact that I am printing to a extendnet print
 server and you to a jetdirect card.

[EMAIL PROTECTED] wrote:
 
  From [EMAIL PROTECTED] Tue Sep 26 07:14:15 2000
  From: David Livingstone [EMAIL PROTECTED]
  Subject: LPRng: Problem with ifhp-3.3.21
  To: [EMAIL PROTECTED]
  Date: Tue, 26 Sep 2000 08:55:12 -0400 (EDT)
  Cc: [EMAIL PROTECTED]
 
 
 
   Posted this on the 14-15th originally and never saw a response ... here
   it is again ...
 
   In an effort to solve a problem I upgraded both ifhp and lprng and found
   another problem !
 
   Original config : LPRng-3.6.19 and ifhp-3.3.17
   new config  : LPRng-3.6.24 and ifhp-3.3.21
 
   Loaded on a redhat 6.2 system attempting to print to a HP8000 connected
   to a extendnet print server. Packages were all loaded via rpm.
 
   With the old configuration and the following printcap I could print
   successfully :
  deslz:
   :lp=deslz%9100
   :sd=/usr/spool/lpd/deslz
   :mx#0
   :bp=/usr/libexec/filters/pclbanner
   :ifhp=model=hp8000,status@
   :if=/usr/libexec/filters/ifhp
 
 I copied this and it worked with the setup
LPRng-3.6.26 and ifhp-3.3.21...  Strange...
 
 
   However with the new configuration printing fails. I get the banner
   page(ie from pclbanner) but no file printed. This happens three times
   before the job appears to be removed.
 
   Below I include the status files from /usr/spool/lpd/deslz and the new
   config.
 
   Any ideas ?
 
   The original problem I was trying to solve was how to print from any other input
   tray then the default ie letter in tray 2. The printer(from the config page) has
   letter in tray 2 and 11x17 in tray 3.
 
   With the original config I attempted :
   lp -oinlower file
   lp -ointray3 file
   lp -o11x17 file
   lp -opaper=11x17 file
 
   All with no success ... thought that maybe an upgrade to 21 was the answer :(
 
  1. File "status" follows :
 
  using model 'hp8000' at 13:47:04.207
  pagecount using 'pjl info pagecount' at 13:47:04.210
  setting up printer at 13:47:04.210
  getting sync using 'pjl echo' at 13:47:04.210
  no response from printer at 13:47:24.205
  using model 'hp8000' at 13:47:34.301
  pagecount using 'pjl info pagecount' at 13:47:34.304
  setting up printer at 13:47:34.304
  getting sync using 'pjl echo' at 13:47:34.304
  no response from printer at 13:47:54.296
  using model 'hp8000' at 13:48:14.396
  pagecount using 'pjl info pagecount' at 13:48:14.398
  setting up printer at 13:48:14.398
  getting sync using 'pjl echo' at 13:48:14.398
 
  for some reason it is not getting the ifhp information from the printcap...
 
  no response from printer at 13:48:34.398
 
 
  2. File "status.deslz" follows :
 
  waiting for subserver to exit at 2000-09-15-13:47:04.139 ## A=NULL number=0 
process=334
  subserver pid 335 starting at 2000-09-15-13:47:04.143 ## A=root@scdev+332 
number=332 process=335
  accounting at start at 2000-09-15-13:47:04.143 ## A=root@scdev+332 number=332 
process=335
  opening device 'deslz%9100' at 2000-09-15-13:47:04.144 ## A=root@scdev+332 
number=332 process=335
  printing job 'root@scdev+332' at 2000-09-15-13:47:04.163 ## A=root@scdev+332 
number=332 process=335
  processing 'dfA332scdev.cn.ca', size 4100, format 'f', IF filter 'ifhp' at 
2000-09-15-13:47:04.163 ## A=root@scdev+332 number=332 process=335
  IF filter 'ifhp' filter msg - 'ifhp 13:47:24.205 [337] Do_sync: no response from 
printer' at 2000-09-15-13:47:24.206 ## A=root@scdev+332 number=332 process=335
  IF filter 'ifhp' filter exit status 'JFAIL' at 2000-09-15-13:47:24.207 ## 
A=root@scdev+332 number=332 process=335
  printing finished at 2000-09-15-13:47:24.207 ## A=root@scdev+332 number=332 
process=335
  accounting at end at 2000-09-15-13:47:24.213 ## A=root@scdev+332 number=332 
process=335
  finished 'root@scdev+332', status 'JFAIL' at 2000-09-15-13:47:24.214 ## 
A=root@scdev+332 number=332 process=335
  subserver pid 335 exit status 'JFAIL' at 2000-09-15-13:47:24.216 ## A=NULL 
number=0 process=334
  job 'root@scdev+332' attempt 1 of 3, retrying at 2000-09-15-13:47:24.218 ## 
A=root@scdev+332 number=332 process=334
  waiting for subserver to exit at 2000-09-15-13:47:24.229 ## A=NULL number=0 
process=334
  attempt 2, sleeping 10 before retry at 2000-09-15-13:47:24.233 ## A=root@scdev+332 
number=332 process=338
  subserver pid 338 starting at 2000-09-15-13:47:34.236 ## A=root@scdev+332 
number=332 process=338
  accounting at start at 2000-09-15-13:47:34.236 ## A=root@scdev+332 number=332 

Re: LPRng: Problem with ifhp-3.3.21

2000-09-28 Thread Edwin Lim

I have a similar (the same) problem when I ugraded *LPRng*:

Old config: LPRng-3.6.21 ifhp-3.3.17
New config: LPRng-3.6.24 ifhp-3.3.17

Problem description:
Partial job output when using @status on HP JetDirect interfaces.

Workaround:
Since I can't turn on status due to some weird problems, the workaround
is to use @pagecount instead of @status.  That seems to solve the
partial printout problem.


On Tue, Sep 26, 2000 at 08:55:12AM -0400, David Livingstone wrote:
 
 
  Posted this on the 14-15th originally and never saw a response ... here
  it is again ...
 
  In an effort to solve a problem I upgraded both ifhp and lprng and found
  another problem !
 
  Original config : LPRng-3.6.19 and ifhp-3.3.17
  new config  : LPRng-3.6.24 and ifhp-3.3.21
 
  Loaded on a redhat 6.2 system attempting to print to a HP8000 connected
  to a extendnet print server. Packages were all loaded via rpm.
 
  With the old configuration and the following printcap I could print
  successfully :
 deslz:
  :lp=deslz%9100
  :sd=/usr/spool/lpd/deslz
  :mx#0
  :bp=/usr/libexec/filters/pclbanner
  :ifhp=model=hp8000,status@
  :if=/usr/libexec/filters/ifhp

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

2000-09-28 Thread David Livingstone


 Thanks ... I will give it a try.

Edwin Lim wrote:
 
 I have a similar (the same) problem when I ugraded *LPRng*:
 
 Old config: LPRng-3.6.21 ifhp-3.3.17
 New config: LPRng-3.6.24 ifhp-3.3.17
 
 Problem description:
 Partial job output when using @status on HP JetDirect interfaces.
 
 Workaround:
 Since I can't turn on status due to some weird problems, the workaround
 is to use @pagecount instead of @status.  That seems to solve the
 partial printout problem.
 
 On Tue, Sep 26, 2000 at 08:55:12AM -0400, David Livingstone wrote:
 
 
   Posted this on the 14-15th originally and never saw a response ... here
   it is again ...
 
   In an effort to solve a problem I upgraded both ifhp and lprng and found
   another problem !
 
   Original config : LPRng-3.6.19 and ifhp-3.3.17
   new config  : LPRng-3.6.24 and ifhp-3.3.21
 
   Loaded on a redhat 6.2 system attempting to print to a HP8000 connected
   to a extendnet print server. Packages were all loaded via rpm.
 
   With the old configuration and the following printcap I could print
   successfully :
  deslz:
   :lp=deslz%9100
   :sd=/usr/spool/lpd/deslz
   :mx#0
   :bp=/usr/libexec/filters/pclbanner
   :ifhp=model=hp8000,status@
   :if=/usr/libexec/filters/ifhp
 
 -
 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.
 -

-
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 and a Phaser 750

2000-09-13 Thread Brent A. Nelson

An error does show up in the output of lpq -v using these options, but it
DOES seem to work (at least so far).  Here's the error:

 Filter_status: error = 'timeout;' at 10:30:00.895
 Filter_status: offendingcommand = 'timeout' at 10:30:00.895

Thanks,

Brent

PS Judging from the PPD, I'm going to have to play with the options for
this printer.  It seems to be quite unlike the ifhp descriptions for the
other phasers (actually, it looked like the phaser740 ifhp options also
didn't match up to its PPD).  This printer claims to even be PJL and PCL
capable. 

On Tue, 12 Sep 2000 [EMAIL PROTECTED] wrote:

 In the ifhp.conf configuration for the printer add:
 
 ps_eoj_at_start@
 end_ctrl_t@
 
 These are my 'desperation options' and this looks like a desperation
 printer
 
  From [EMAIL PROTECTED] Tue Sep  5 16:19:41 2000
  Date: Tue, 5 Sep 2000 18:14:51 -0400 (EDT)
  From: "Brent A. Nelson" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: LPRng: problem with ifhp and a Phaser 750
 
  I am using the RPMs for LPRng 3.6.24 and ifhp 3.3.21 to talk to a new
  Phaser 750 but I ran into a snag.  An lpr produces a successful print, but
  at the end of the job, there is a postscript error and the job doesn't
  dequeue.
 
  After telling the printer to print an error page, it told me that the
  offending command is "^D^D^T". So, I created a phaser750 model in the
  /etc/ifhp.conf which just reads in the phaser740 entry and appends a
  "waitend@".  This seems to work, but is there a better solution?
 
  Thanks,
 
  Brent Nelson
  Sys. Manager
  Dept. of Astronomy
  University of Florida
 
 
  -
  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.
  -
 
 
 -
 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.
 -
 


-
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 and a Phaser 750

2000-09-12 Thread papowell

In the ifhp.conf configuration for the printer add:

ps_eoj_at_start@
end_ctrl_t@

These are my 'desperation options' and this looks like a desperation
printer

 From [EMAIL PROTECTED] Tue Sep  5 16:19:41 2000
 Date: Tue, 5 Sep 2000 18:14:51 -0400 (EDT)
 From: "Brent A. Nelson" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: problem with ifhp and a Phaser 750

 I am using the RPMs for LPRng 3.6.24 and ifhp 3.3.21 to talk to a new
 Phaser 750 but I ran into a snag.  An lpr produces a successful print, but
 at the end of the job, there is a postscript error and the job doesn't
 dequeue.

 After telling the printer to print an error page, it told me that the
 offending command is "^D^D^T". So, I created a phaser750 model in the
 /etc/ifhp.conf which just reads in the phaser740 entry and appends a
 "waitend@".  This seems to work, but is there a better solution?

 Thanks,

 Brent Nelson
 Sys. Manager
 Dept. of Astronomy
 University of Florida


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


-
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 in Direct TCP/IP printing with Win2K

2000-08-31 Thread jjaddiss



I have also seen the problem with Windows 2000 not zeroing the file size if you
don't check the 'LPR byte counting' check box. As far as my Sniffer(tm) and I
can tell it's a somewhat random number that appears, but usually quite large (in
the terrabytes).

The only solution I've come up with is to ALWAYS tell Win2K to count the bytes
so that the file size is explicitly given in the data header.

- Justus





[EMAIL PROTECTED] on 08/30/2000 06:48:01 PM

Please respond to [EMAIL PROTECTED]


To:   [EMAIL PROTECTED]
cc:(bcc: Justus J. Addiss/HI-Healthinfo/3M/US)
Subject:  Re: LPRng: Problem in Direct TCP/IP printing with Win2K



 From [EMAIL PROTECTED] Sun Aug 27 10:03:25 2000
 From: "Matanya Elchanani" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: LPRng: Problem in Direct TCP/IP printing with Win2K
 Date: Sun, 27 Aug 2000 16:09:24 GMT

 Answering myself:

 As usual, Microsoft has decided to break the standards. After analyzing the
 trafic of a print request I found that M$ is not following RFC1179. The LPR
 port configuration dialog box has a checkmark button for "LPR Byte
 Counting". By default this option is NOT enabled. The help on this option
 tells you that you should use it only if the LPD on the other side is
 printing half documents because "byte counting is a CPU intensive
 operation". Anyway, looking at the traffic I noticed the following receive
 job subcommand:

 PRINTER:  "\003125899906843000 dfA038MATANYA-IT\n"

 As seen above, the count after the command code (\003) is a huge 12 digit
 number (looks like a non-initialized pointer value). LPRng correctly answers
 with "insufficient file space". This behaviour of the Microsoft port goes
 against RFC1179 which clearly states:

6.3 ...
The total number of bytes in the stream may be sent as the first
operand, otherwise the field should be cleared to 0.

 They don't clear it to 0. The workaround is to enable "LPR Byte counting"
 when creating the LPR port in Windows 2000. This will put the correct count
 in the 03 message, as can be seen from the same job submitted with this
 option on:

 PRINTER:  "\00364541 dfA039MATANYA-IT\n"

I am baffled by this one.  I just looked at the W2K setup on the
sales droid's computer...  First,  you need to use the
Control Panel/Add Software/Windows Components/
  Additional Network/Unix Printing

setup to install the RFC1179 support.

There were no options when I created a LPD port.

How do you find this option?

By the way,  could you PLEASE double check to make sure that this
is the value that they are using? i.e. -
125899906843000

This 125,899,906,843,000 = 15 digit, not 12 digit number...
I thought it was actually 123,456,789,000  or something...

Patrick

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.astart.com)

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







-
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 in Direct TCP/IP printing with Win2K

2000-08-31 Thread Matanya Elchanani

Hi Patrick and all,

Patrick, you're looking at the wrong place. You try to set the W2K box to be 
an LPD server, I'm trying to setup a W2K box to print to an LPD server. You 
do that by the following:
Create a new local printer
Select "Create a new port", Port type: Standard TCP/IP port
Type in your LPD server's IP address/FQDN
In Device type, Select Custom, and hit Settings
In Protocol, select LPR. Fill the required queue name in the box. You'll see 
the "LPR byte counting" option in the middle of the dialog box.

Regarding the 15 digit number, I stand corrected, it was a 15 digit not 12 
digit. I'm getting the same number every time I'm using this port without 
"byte counting enabled". Other people report random results, which makes me 
suspect that this is a non-initialized memory issue.


From: [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: LPRng: Problem in Direct TCP/IP printing with Win2K
Date: Wed, 30 Aug 2000 15:48:01 -0700 (PDT)

  From [EMAIL PROTECTED] Sun Aug 27 10:03:25 2000
  From: "Matanya Elchanani" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: Re: LPRng: Problem in Direct TCP/IP printing with Win2K
  Date: Sun, 27 Aug 2000 16:09:24 GMT
 
  Answering myself:
 
  As usual, Microsoft has decided to break the standards. After analyzing 
the
  trafic of a print request I found that M$ is not following RFC1179. The 
LPR
  port configuration dialog box has a checkmark button for "LPR Byte
  Counting". By default this option is NOT enabled. The help on this 
option
  tells you that you should use it only if the LPD on the other side is
  printing half documents because "byte counting is a CPU intensive
  operation". Anyway, looking at the traffic I noticed the following 
receive
  job subcommand:
 
  PRINTER:  "\003125899906843000 dfA038MATANYA-IT\n"
 
  As seen above, the count after the command code (\003) is a huge 12 
digit
  number (looks like a non-initialized pointer value). LPRng correctly 
answers
  with "insufficient file space". This behaviour of the Microsoft port 
goes
  against RFC1179 which clearly states:
 
 6.3 ...
 The total number of bytes in the stream may be sent as the first
 operand, otherwise the field should be cleared to 0.
 
  They don't clear it to 0. The workaround is to enable "LPR Byte 
counting"
  when creating the LPR port in Windows 2000. This will put the correct 
count
  in the 03 message, as can be seen from the same job submitted with this
  option on:
 
  PRINTER:  "\00364541 dfA039MATANYA-IT\n"

I am baffled by this one.  I just looked at the W2K setup on the
sales droid's computer...  First,  you need to use the
Control Panel/Add Software/Windows Components/
   Additional Network/Unix Printing

setup to install the RFC1179 support.

There were no options when I created a LPD port.

How do you find this option?

By the way,  could you PLEASE double check to make sure that this
is the value that they are using? i.e. -
125899906843000

This 125,899,906,843,000 = 15 digit, not 12 digit number...
I thought it was actually 123,456,789,000  or something...

Patrick

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.astart.com)

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

_
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Share information about yourself, create your own public profile at 
http://profiles.msn.com.


-
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 in Direct TCP/IP printing with Win2K

2000-08-30 Thread papowell

 From [EMAIL PROTECTED] Sat Aug 26 11:29:20 2000
 From: "Matanya Elchanani" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: Problem in Direct TCP/IP printing with Win2K
 Date: Sat, 26 Aug 2000 17:25:37 GMT

 Hello all,

 I am having a problem setting win2K to print directly to LPRng (not
 through Samba). I have an LPRng lpd server (3.6.24) running on a
 Solaris 8 box. The lpd server runs great and is being used in
 production (by both local lpr and remote lpr). I configured a new
 printer on a win2k pro. box, and setup an LPR port as the printer's
 port. When I try to send a test page, I get an error dialog
 box 'There was an error encountered when printing the
 document "Testpage"'. On the server side there are no changes.
 Setting up debug level 2 on the queue does not show any activity on
 the queue sub-process. Starting lpd with debug shows that the win2k
 box actually connects and selects the right print queue, but nothing
 more. Snooping the network shows that the lpd server returns
 an "insufficient file space" error packet back to the win2k box.
 Obviously, there are no space issues involved. I have also tried it
 with LPRng 3.6.19 on HPUX 10.20 - same results. If I stop the lpd and
 start the Solaris print service, the job is accepted. Anyone had any
 experiance in setting direct TCP/IP printing with LPRng? I'll
 appreciate any feedback on what can go wrong here.

 
 Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com

Your NT system is sending jobs to the wrong queue.  You most
likely have a problem with 'case' or something.

You are on the right track with the debugging,  try:

lpd -F -Dnetwork+2

This will show the network traffic and you can see the actual
things sent.

At one point I used to log the 'bad queue' error but some enterprising
hackers discovered it made an excellent DOS attack method.

Patrick

-
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 compiling LPRng 3.6.23 for AIX4.3.2

2000-08-16 Thread papowell

 From [EMAIL PROTECTED] Tue Aug 15 07:26:41 2000
 Date: Tue, 15 Aug 2000 14:42:36 +0200
 From: Thomas Emmel [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: Problem compiling LPRng 3.6.23 for AIX4.3.2

 I get the following error message compiling lprng 3.6.23:
 snip-
... skipped errors for IPV6 support
 snip

 Since I am not very familiar with C I need some help about that...
 The same problem in ifhp 3.3.20 ..

 Thanks in advance

 Thomas

 
 Dipl.-Ing. Thomas Emmel

 TU Darmstadt: Inst. f. Mechanik (FB6) AG IV
   Hochschulstr. 1,   64289 Darmstadt 
 Tel.: +49 (6151) 16 49 66, FAX: +49 (6151) 16 30 18
 e-mail: [EMAIL PROTECTED]
 www   : http://coulomb.mechanik.tu-darmstadt.de/user/emmel
 

Fixed in next release.

Patrick

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

2000-08-01 Thread William R. Knox

Unless their configuration files (i.e. .paprc files) were special files
or zero length, they shouldn't have gotten removed by checkpc (at least
not as it stands in version 3.6.22). However, only looking for what you
know you created in there probably does make sense. Ah, well - so much
for my hope to get a patch credit in the CHANGES file. I'll just have to
keep looking for easy little tidbits :-)

-- 
Bill Knox
Senior Operating Systems Programmer/Analyst
The MITRE Corporation

[EMAIL PROTECTED] wrote:
 
  From [EMAIL PROTECTED] Fri Jul 28 11:00:43 2000
  Date: Fri, 28 Jul 2000 12:26:29 -0400
  From: "William R. Knox" [EMAIL PROTECTED]
  To: [EMAIL PROTECTED]
  Subject: LPRng: Problem with checkpc
 
  In LPRng-3.6.22, I still have a problem with mildly over-aggressive
  behavior in checkpc. Specifically, I have a character special file in
  many queues (a null device) which I use in conjunction with Netatalk
  filtering and printing. When I run checkpc -A [time] -r -Pqueuename, it
  removes the null device from inside the queue.
 
  A check in checkpc looks to see if a file is zero length and will then
  remove it if it is older than the time set in the A flag, but doesn't
  confirm that it is a regular file. The following simple patch will fix
  that, and has been checked on Solaris 2.6 (and I at least examined the
  man page for stat on Linux and confirmed that it has the s_IFREG and
  S_IFMT constants defined):
 
 
 I have also got email from somebody using 'netatalk' to communicate
 with their printers and they pointed out that I am removing the
 configuration files from the directory also.
 
 So I have modified the behaviour to only remove temp files and
 job files created by LPRng and ifhp.  If you have other files,
 then you will need to write your own 'cron cleanup'.  I think this
 is a pretty good solution as it now allows you to put just about
 anything in there...  Watch out for 'checkpc -f' still - it will
 brutally change permissions still.
 
 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.astart.com)
 
 -
 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.
 -

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

2000-07-31 Thread papowell

 From [EMAIL PROTECTED] Mon Jul 24 08:13:48 2000
 Date: Mon, 24 Jul 2000 16:16:10 +0200
 From: Christoph Beyer [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: LPRng: Problem with 3.6.22

 Hmmm,

 I seem to have the same problem with the patched version of 3.6.21...

 regards Christoph

  printer_name|PRINTER_NAME:tc=.printer-ip
  printer_name|PRINTER_NAME:client:lpr_bounce:lp=printer_name@localhost
  
printer_name|PRINTER_NAME:server:ab:bs=/usr/local/bin/pclbanner:if=/usr/local/etc/filters/ifhp:of=/usr/local/etc/filters/ofhp:lp=ip.of.printer%9100
  
  .printer-ip:\
  sd=/var/spool/lpd/%P:\
  chooser=/usr/local/eprint/bin/poll_printer.pl:\
  connect_grace=10:\
  network_connect_grace=10

OK, I have found the problem(s).  Apparently I cannot read my own documentation,
and tried to read from a file that was closed.  Sigh.

By the way,  I have some minor suggestions:

printer_name|PRINTER_NAME:client:lpr_bounce:lp=printer_name@localhost
^^ remove this
Result:

  printer_name|PRINTER_NAME:client:lp=printer_name@localhost

You will also not need the stuff in the .printer-ip for connections to localhost or 
even
connections to remote systems.

printer_name|PRINTER_NAME:server:tc=.printer-ip
  :ab:bs=/usr/local/libexec/filters/pclbanner
  :filter=/usr/local/libexec/filters/ifhp
  :of=/usr/local/libexec/filters/ofhp:lp=ip.of.printer%9100
.printer-ip
  :sd=/var/tmp/LPD/%P
  :chooser=/usr/local/eprint/bin/poll_printer.pl
  :connect_grace=10
  :network_connect_grace=10

Yes, yes, I know that the : at the end is OK,  but it is VERY confusing,
and you only need to drop one :\ and you screw up...  as I did while
testing.


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.astart.com)

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

2000-07-24 Thread Christoph Beyer

Hmmm,

I seem to have the same problem with the patched version of 3.6.21...

regards Christoph




William R. Knox schrieb:
 
 Having just downloaded and built LPRng-3.6.22, I have come across a
 strange problem. I can't print from a print server with the same
 lpd.conf and lpd.perms that I used with 3.6.21. I get the following
 error:
 
 b120b: Read_write_timeout: readfd 3 closed
 
 The command line is simply
 
 lpr -Pprinter_name file_name
 
 However, if I use
 
 lpr -Pprinter_name@localhost file_name
 
 everything works out fine. My printcap entry is as follows:
 
 printer_name|PRINTER_NAME:tc=.printer-ip
 printer_name|PRINTER_NAME:client:lpr_bounce:lp=printer_name@localhost
 
printer_name|PRINTER_NAME:server:ab:bs=/usr/local/bin/pclbanner:if=/usr/local/etc/filters/ifhp:of=/usr/local/etc/filters/ofhp:lp=ip.of.printer%9100
 
 .printer-ip:\
 sd=/var/spool/lpd/%P:\
 chooser=/usr/local/eprint/bin/poll_printer.pl:\
 connect_grace=10:\
 network_connect_grace=10
 
 However, it also happens with a printer with this printcap:
 
 printer_name|PRINTER_NAME:client:lpr_bounce:lp=printer_name@localhost
 printer_name|PRINTER_NAME:ab:bs=/usr/local/bin/lpbanner:server:tc=.printer
 
 .printer:\
 lp=/var/spool/lpd/%P/null:\
 sd=/var/spool/lpd/%P:\
 if=/usr/local/etc/filters/ifmpap:\
 of=/usr/local/etc/filters/ofmpap:\
 connect_grace=10:\
 chooser=/usr/local/eprint/bin/poll_printer.pl
 
 force_localhost defaults to ON in the lpd.conf file (and I've also tried
 turning it on explicitly), and LPRng was built with the following,
 fairly straightforward configuration:
 
 ./configure  --with-filterdir=/usr/local/bin
 --with-printcap_path=/etc/printcap:/etc/printcap.server
 --sbindir=/usr/local/bin
 
 Printing from another machine works out just fine (though I am running
 an older version of LPRng on that those boxes). Any ideas? Anyone?
 Patrick?
 
 --
 Bill Knox
 Senior Operating Systems Programmer/Analyst
 The MITRE Corporation
 
 -
 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.
 -

-
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 sending print jobs to print server

2000-07-17 Thread Zdenek Drlik


[EMAIL PROTECTED] wrote:
What is your printcap file?
The printcap entry for this printer is:
laser1:\
 :sd=/var/spool/lpd/laser1:\
 :mx#0:\
 :sh:\
 :rm=prtsrv1:\
 :rp=L1:\
 :if=/var/spool/lpd/laser1/filter:
This entry was created by the printtool from RH6.2.
--
Zdenìk Drlík



Re: LPRng: Problem with sending print jobs to print server

2000-07-17 Thread papowell

 From [EMAIL PROTECTED] Mon Jul 17 00:20:59 2000
 Date: Mon, 17 Jul 2000 08:07:03 +0200
 From: Zdenek Drlik [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: LPRng: Problem with sending print jobs to print server


 --2A0173BF5798C92C2714BFA6
 Content-Type: text/plain; charset=iso-8859-2
 Content-Transfer-Encoding: 8bit

 [EMAIL PROTECTED] wrote:

  What is your printcap file?

 The printcap entry for this printer is:
 laser1:\
 :sd=/var/spool/lpd/laser1:\
 :mx#0:\
 :sh:\
 :rm=prtsrv1:\
 :rp=L1:\
 :if=/var/spool/lpd/laser1/filter:

 This entry was created by the printtool from RH6.2.

 --
 Zdenìk Drlík

Try:
 laser1:\
 :sd=/var/spool/lpd/laser1:\
 :mx#0:\
 :sh:\
 :rm=prtsrv1:\
 :rp=L1:


-
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 with respecting the ps_eoj_at_start@

2000-07-14 Thread Jesper Dangaard Brouer

Hi Patrick

On Thu, 13 Jul 2000 [EMAIL PROTECTED] wrote:

   I am a little puzzled why this is making a difference.
 
  Okay, my hack/trick is that I want a "bannerline", please note "line" not
  "page" (as in bannerpage).
 
  I have written some postscript-code which makes an bannerline on each page
  (see attachment: bannerpage.ps)
 
  My "old" printer system, were sending the print job as one ps-file,
  generated through our own filter. Now I want to upgrade to ifhp (it is
  much cleaner and better than our own filter).
 
  But bannerpage with ifhp, is done in 2 stages ...!
  ("of" prints the bannerpage, "if" prints the "real" job)
  That is 2 seperate print jobs, which means that my postscript code from
  the bannerpage.ps does NOT have any effekt on the second job.
 
  What I'm doing is in the above (in my printcap file), is to make sure that
  nothing happens between the 2 filters "of" and "if", so that my bannerline
  postscript code doesn't get "deleted", but survives in the printer.
 
 Well,  I have a solution but you will not like it.  I think.

I have solved the problem exactly this way ;-) And was about to answer my
own mail with this solution ;-)

So I like it!
 
 First,  if I get this straight,  you want to
 
 a) send some PostScript at the start of each PostScript file
Yes, I want to set a postscript "hock" on /Endpage (attaching it to the
pagedevice mekanism), which means that it gets activated on every page
(and prints my bannerline).

 b) have this PostScript 'configured' for each user.
Yes, I just didn't realize that the information was available in the
ifhp.conf, until I saw the "pjl_ready_msg" syntax.

 Suppose that we append the following to the ifhp.conf file:
 
 [ hp5simx ]
 tc=hp5simx
 
 ps_bannerline= 
  20 dict begin
  /bline true def
  /user (\%s{n}) def
  /job (\%s{J}) def
  /file (\%s{f}) def
  /host (\%s{H}) def
  /date (\%s{D}) def
  /printer (\s%{P}) def
  %
  % Bannerpage and bannerline postscript code
  %
  /mm { 25.4 div 72 mul } def
  /ef1 /Helvetica findfont [9 0 0 6 0 0] makefont def
  /ef2 /Courier   findfont [9 0 0 6 0 0] makefont def
  bline { %if
/mbline {
  gsave
  initgraphics
  90 rotate
  //ef1 setfont  32 //mm exec -8 //mm exec moveto (User: ) show
 //ef2 setfont //user show
  //ef1 setfont 112 //mm exec -8 //mm exec moveto (File: ) show
 //ef2 setfont //file show
  //ef1 setfont 192 //mm exec -8 //mm exec moveto (Date: ) show
 //ef2 setfont //date show
  //ef2 setfont 112 //mm exec -6 //mm exec moveto (Printed at ) show
 //ef1 setfont (DIKU) show
  grestore
} bind def
  } { /mbline { } def } ifelse
   /EndPage { 2 ne dup { //mbline exec } if exch pop } bind  setpagedevice
  end
 ps_init+=[ bannerline ]
 
 
 Now we use the same setup as before:
 ...

Now I just want the students (users) to be able to choose between
bannerline and no bannerline ... but this should be easy to solve ;-)

The only thing which bugs me is \%s{D}, which is the "date". I would like
an more pretty output ... is there any way I can do this? (eg. specifying 
my own parameters/variables \%s{pretty_date_format})


Thank you for your answer :-)

Hilsen
  Jesper Brouer

---
System Administrator
Dept. of Computer Science, University of Copenhagen
E-mail: [EMAIL PROTECTED], Direct Tel.: 353 21375
---


-
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 with respecting the ps_eoj_at_start@

2000-07-14 Thread papowell

 From [EMAIL PROTECTED] Fri Jul 14 07:01:06 2000
 Date: Fri, 14 Jul 2000 14:46:46 +0200 (CEST)
 From: Jesper Dangaard Brouer [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: LPRng: Problem with ifhp with respecting the "ps_eoj_at_start@"

 Hi Patrick

 On Thu, 13 Jul 2000 [EMAIL PROTECTED] wrote:

I am a little puzzled why this is making a difference.
  
   Okay, my hack/trick is that I want a "bannerline", please note "line" not
   "page" (as in bannerpage).
  
   I have written some postscript-code which makes an bannerline on each page
   (see attachment: bannerpage.ps)
  
   My "old" printer system, were sending the print job as one ps-file,
   generated through our own filter. Now I want to upgrade to ifhp (it is
   much cleaner and better than our own filter).
  
   But bannerpage with ifhp, is done in 2 stages ...!
   ("of" prints the bannerpage, "if" prints the "real" job)
   That is 2 seperate print jobs, which means that my postscript code from
   the bannerpage.ps does NOT have any effekt on the second job.
  
   What I'm doing is in the above (in my printcap file), is to make sure that
   nothing happens between the 2 filters "of" and "if", so that my bannerline
   postscript code doesn't get "deleted", but survives in the printer.
  
  Well,  I have a solution but you will not like it.  I think.

 I have solved the problem exactly this way ;-) And was about to answer my
 own mail with this solution ;-)

 So I like it!
  
  First,  if I get this straight,  you want to
  
  a) send some PostScript at the start of each PostScript file
 Yes, I want to set a postscript "hock" on /Endpage (attaching it to the
 pagedevice mekanism), which means that it gets activated on every page
 (and prints my bannerline).

  b) have this PostScript 'configured' for each user.
 Yes, I just didn't realize that the information was available in the
 ifhp.conf, until I saw the "pjl_ready_msg" syntax.

  Suppose that we append the following to the ifhp.conf file:
  
  [ hp5simx ]
  tc=hp5simx
  
  ps_bannerline= 
   20 dict begin
   /bline true def
   /user (\%s{n}) def
   /job (\%s{J}) def
   /file (\%s{f}) def
   /host (\%s{H}) def
   /date (\%s{D}) def
   /printer (\s%{P}) def
   %
   % Bannerpage and bannerline postscript code
   %
   /mm { 25.4 div 72 mul } def
   /ef1 /Helvetica findfont [9 0 0 6 0 0] makefont def
   /ef2 /Courier   findfont [9 0 0 6 0 0] makefont def
   bline { %if
 /mbline {
   gsave
   initgraphics
   90 rotate
   //ef1 setfont  32 //mm exec -8 //mm exec moveto (User: ) show
//ef2 setfont //user show
   //ef1 setfont 112 //mm exec -8 //mm exec moveto (File: ) show
//ef2 setfont //file show
   //ef1 setfont 192 //mm exec -8 //mm exec moveto (Date: ) show
//ef2 setfont //date show
   //ef2 setfont 112 //mm exec -6 //mm exec moveto (Printed at ) show
//ef1 setfont (DIKU) show
   grestore
 } bind def
   } { /mbline { } def } ifelse
/EndPage { 2 ne dup { //mbline exec } if exch pop } bind  setpagedevice
   end
  ps_init+=[ bannerline ]
  
  
  Now we use the same setup as before:
  ...

 Now I just want the students (users) to be able to choose between
 bannerline and no bannerline ... but this should be easy to solve ;-)

Then change:
   ps_init+=[ bannerline ]
TO
   ps_user_opts+=[ bannerline ]

and now they can do:  lpr -Zbannerline


 The only thing which bugs me is \%s{D}, which is the "date". I would like
 an more pretty output ... is there any way I can do this? (eg. specifying 
 my own parameters/variables \%s{pretty_date_format})

Not really easily.

You would have to modify ifhp.c:

char *Find_sub_value( int c, char *id, int strval )
{
char *s = 0; 
int i;
DEBUG4("Find_sub_value: type '%c', id '%s'", c, id );
if( s == 0  !strcasecmp(id,"pid") ){
static char pid[32];
SNPRINTF(pid, sizeof(pid),"%d",getpid());
s = pid;
}
/* pretty date */
if( s == 0  !strcasecmp(id,"date") ){
static char date[64];
struct tm tm;
gettimeofday(tm);
strftime(date, sizeof(date),"format for date",tm);
s = date;
}


Now change

  /date (\%s{D}) def
TO
  /date (\%s{date}) def

and you will have what you want.

Of course you could even go further and use:

ifhp.conf file:

date_format=  format for strftime ...

/* pretty date */
if( s == 0  !strcasecmp(id,"date") ){
static char date[64];
char *fmt = Find_str_value(Model,"date_format");
struct tm tm;
if( date_format ){
gettimeofday(tm);
strftime(date, sizeof(date),Date_format,tm);
   

Re: LPRng: Problem with sending print jobs to print server

2000-07-14 Thread papowell

 From [EMAIL PROTECTED] Tue Jul 11 00:52:53 2000
 Date: Tue, 11 Jul 2000 08:44:46 +0200
 From: Zdenek Drlik [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: Problem with sending print jobs to print server

 Hallo,
 I just installed LPRng-3.6.20-1 on my RedHat 6.2 server and I have
 problem with sending print jobs to laser printer attached to print
 server box (Micronet SP 750). When I print the job with lpr command, in
 file status.$printername in spool directory of the printer is somtehing
 like this:

 job 'drlik@server1+570' transfer to L1@prtsrv1 failed
 error 'NONZERO RFC1179 ERROR CODE FROM SERVER' with ack 'ack error
 -1'
 sending string '^BL1' to L1@prtsrv1 at 2000-07-11-08:16:33.423 ##
 identifier=NULL number=0 proccess=2744
 waiting for subserver to exit at 2000-07-11-08:16:33.423 ##
 identifier=NULL number=0 proccess=2743

 Print job is still in spool and lpq command tells that it is stalled.
 This situation doesn't occurs at once, I am able to print some jobs, but
 after one or three printed jobs I am not able to print another.
 The LPRng I installed instead lpr default package in RH and I let all
 entries in printcap which the "printtool" created.
 Does anybody know how could I


 --
 S pozdravem

 Zdenìk Drlík

What is your printcap file?

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.astart.com)

-
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 lpc reread

2000-07-14 Thread papowell

 From [EMAIL PROTECTED] Tue Jul 11 09:18:29 2000
 Date: Tue, 11 Jul 2000 11:00:45 -0400
 From: "William R. Knox" [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: Problem with lpc reread

 It appears that with LPRng 3.6.20, an lpc reread is killing the server
 instead of causing it to merely reread the config file. Doing an lpc -D2
 reread on a server produces the following output (thousands of lines at
 the beginning removed - I have 920 printers. Patrick, if you want them,
 I'll mail them directly):


It was trying to dereference a nil pointer.
Fixed.

Patrick

-
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 with respecting the ps_eoj_at_start@

2000-07-13 Thread papowell

 From [EMAIL PROTECTED] Mon Jul 10 09:29:43 2000
 Date: Mon, 10 Jul 2000 17:21:39 +0200 (CEST)
 From: Jesper Dangaard Brouer [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: Re: LPRng: Problem with ifhp with respecting the "ps_eoj_at_start@"

   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.

 ---511536288-503108044-963242499=:30293
 Content-Type: TEXT/PLAIN; charset=US-ASCII

 Hi Patrick

 On Wed, 5 Jul 2000 [EMAIL PROTECTED] wrote:

  Could you tell me what your printcap entry is,  and what printer
  you are using?  

 hplspb|spb|HP 5Si MX, SP12|HP Laser 5si MX SPB, SP12
  :ab
  :ae=/xxx/accounting/accounting.pl end
  :af=accounting.log
  :as=/xxx/accounting/accounting.pl start
  :bp=/xxx/accounting/psbanner.pl
  :fx=flpdv
  :generate_banner
  :if=/hawktmp/ifhp-3.3.17/src/ifhp -Tpjl@,status@,sync@,pagecount@,ps_eoj_at_start@
  :ifhp=model=hp5simx
  :lp=spb%9100
  :of=/hawktmp/ifhp-3.3.17/src/ifhp -Tstatus,sync@,pagecount,ps_eoj_at_start@
  :ps=status
  :rp=hplspb
  :sd=/var/spool/lpd/%P
  :sh@

  I am a little puzzled why this is making a difference.

 Okay, my hack/trick is that I want a "bannerline", please note "line" not
 "page" (as in bannerpage).

 I have written some postscript-code which makes an bannerline on each page
 (see attachment: bannerpage.ps)

 My "old" printer system, were sending the print job as one ps-file,
 generated through our own filter. Now I want to upgrade to ifhp (it is
 much cleaner and better than our own filter).

 But bannerpage with ifhp, is done in 2 stages ...!
 ("of" prints the bannerpage, "if" prints the "real" job)
 That is 2 seperate print jobs, which means that my postscript code from
 the bannerpage.ps does NOT have any effekt on the second job.

 What I'm doing is in the above (in my printcap file), is to make sure that
 nothing happens between the 2 filters "of" and "if", so that my bannerline
 postscript code doesn't get "deleted", but survives in the printer.


   From [EMAIL PROTECTED] Tue Jul  4 15:15:48 2000
   Date: Tue, 4 Jul 2000 23:18:36 +0200 (CEST)
   From: Jesper Dangaard Brouer [EMAIL PROTECTED]
   To: [EMAIL PROTECTED]
   Subject: LPRng: Problem with ifhp with respecting the "ps_eoj_at_start@"
  
  
   Problem with ifhp with respecting the "ps_eoj_at_start@"
  
   My problem is that, 
 there are too many CTRL-D,
 between the postscript-code from the "of" filter and the "if" filter.
  
   I used to solve this problem, by specifying "ps_eoj_at_start@" (or as it
   recently was known "no_ps_eoj").
  
   If I don't specify "ps_eoj_at_start@", then 2 CTRL-D exist between the
   ps-code from "of" filter and the "if" filter If I do specify
   "ps_eoj_at_start@", then there is only 1 CTRL-D.
   (info: the easiest way to debug this, is by setting dev=/tmp/d )
  
   (versions) I have tried the different version of "ifhp", and the
   problem/error happens between version 3.3.12 and 3.3.13. (version 3.3.12
   works and 3.3.13 does not). (I'm running with 3.3.17)
  
  
   The problem, might be that the "of" filter, puts an CTRL-D after sending
   it's print job.  If this is the case, then I would like an
   "ps_eoj_at_end@" option, like the eksisting "ps_eoj_at_start@" option.
  


 Hilsen
   Jesper Brouer

 ---
 System Administrator
 Dept. of Computer Science, University of Copenhagen
 E-mail: [EMAIL PROTECTED], Direct Tel.: 353 21375
 ---

 ---511536288-503108044-963242499=:30293
 Content-Type: APPLICATION/postscript; name="bannerline.ps"
 Content-Transfer-Encoding: BASE64
 Content-ID: [EMAIL PROTECTED]
 Content-Description: 
 Content-Disposition: attachment; filename="bannerline.ps"

 
 %!PS
 20 dict begin
 /bline true def
 /user (Hawk) def
 /job (test.ps) def
 /file (playing_with_postscript) def
 /host (badehat.diku.dk) def
 /date (Tue Jul  4 18:26:04 CEST 2000) def
 /printer (hplspb) def
 %
 % Bannerpage and bannerline postscript code
 %
 /mm { 25.4 div 72 mul } def
 /ef1 /Helvetica findfont [9 0 0 6 0 0] makefont def
 /ef2 /Courier   findfont [9 0 0 6 0 0] makefont def
 bline { %if
   /mbline {
 gsave
 initgraphics
 90 rotate
 //ef1 setfont  32 //mm exec -8 //mm exec moveto (User: ) show
 //ef2 setfont //user show
 //ef1 setfont 112 //mm exec -8 //mm exec moveto (File: ) show
 //ef2 setfont //file show
 //ef1 setfont 192 //mm exec -8 //mm exec moveto (Date: ) show
 //ef2 setfont //date show
 //ef2 setfont 112 //mm exec -6 //mm exec moveto (Printed 

Re: LPRng: Problem with ifhp with respecting the ps_eoj_at_start@

2000-07-05 Thread papowell

Could you tell me what your printcap entry is,  and what printer
you are using?  I am a little puzzled why this is making a difference.

Patrick

 From [EMAIL PROTECTED] Tue Jul  4 15:15:48 2000
 Date: Tue, 4 Jul 2000 23:18:36 +0200 (CEST)
 From: Jesper Dangaard Brouer [EMAIL PROTECTED]
 To: [EMAIL PROTECTED]
 Subject: LPRng: Problem with ifhp with respecting the "ps_eoj_at_start@"


 Problem with ifhp with respecting the "ps_eoj_at_start@"

 My problem is that, 
   there are too many CTRL-D,
   between the postscript-code from the "of" filter and the "if" filter.

 I used to solve this problem, by specifying "ps_eoj_at_start@" (or as it
 recently was known "no_ps_eoj").

 If I don't specify "ps_eoj_at_start@", then 2 CTRL-D exist between the
 ps-code from "of" filter and the "if" filter If I do specify
 "ps_eoj_at_start@", then there is only 1 CTRL-D.
 (info: the easiest way to debug this, is by setting dev=/tmp/d )

 (versions) I have tried the different version of "ifhp", and the
 problem/error happens between version 3.3.12 and 3.3.13. (version 3.3.12
 works and 3.3.13 does not). (I'm running with 3.3.17)


 The problem, might be that the "of" filter, puts an CTRL-D after sending
 it's print job.  If this is the case, then I would like an
 "ps_eoj_at_end@" option, like the eksisting "ps_eoj_at_start@" option.


 Hilsen
   Jesper Brouer

 ---
 System Administrator
 Dept. of Computer Science, University of Copenhagen
 E-mail: [EMAIL PROTECTED], Direct Tel.: 353 21375
 ---


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


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