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

LPRng: Problem with 'file'

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

Any clues here?

 _  _ _  _ ___  _  _  _
|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

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