LPRng: Jetdirect 3 ports and Postscript interpreted as TEXT
Hi to all, after i upgraded from old lpd (slackware 7) to lprng 3.8.21 i'm unable to print correctly to my JetDirect with 3 parallel port. I have an HP Laserjet 2100 connected on port 3 and i use samba to print directly from windows stations. The problem is that if i print with lpr from linux to make some tests i try: lpr -Plaserjet /usr/share/ghostscript/5.50/examples/tiger.ps This should print the famous tiger PS example of ghostscript but it prints only the content of the file as if the JetDirect box (or the printer) interpret it as text with only the linefeeds appended to each line. %!PS-Adobe-2.0 EPSF-1.2 %%Creator: Adobe Illustrator(TM) 1.2d4 I changed from old lpd (that worked well for 3 years with slackware 7) becouse i upgraded to slackware 8 and i started to have some strange queue stops with errors from jetdirect saying: lpd[8241]: laserjet: lost connection. And i found the spool directory with all files inside and not able to print anymore. I need to delete all cf,df,lpdtmp files and restart lpd to let it print again for a while and after it stops again. Thinking on some changes of lpd version from slackware 7 to 8 i changet to the latest version of lprng. But it has not solved the problems. I went to conclusion that the JetDirect may have some problem becouse on the network i have an LaserJet 4000 with the jetdirect interface and if i print on it in the same way the tiger prints correctly. I tryied directly with the netcat tool too: nc 10.0.0.243 9102 /usr/share/ghostscript/5.50/examples/tiger.ps on the laserjet 4000 it prints OK and on the JetDirect Box every time the same output. Now i'm writing to you becouse i tryed to redirect directly the printer ports on the Windows clients on the Jetdirect Box avoiding the Linux box and it prints perfectly well, but the windows driver prints in PCL. So i tried to print from linux a PCL file and it works perfectly. Is possible that the laserjet printer do not understand postscript anymore? I will try to connect the laserjet directly to parallel port of the server and print a PS file to look at the results. If you have some ideas,please help me. Bye, Marcello This is my printcap entry: l2:\ :lp=:force_localhost:sh:\ :sd=/var/spool/lpd/laserjet:mx#0:\ :rm=hpjetdirect:rp=raw3: I don't use filters becouse the files are already formatted by the windows driver in the correct format and i don't need to print from linux. In the /etc/hosts i have the translation from hpjetdirect to 10.0.0.243 This is the configuration of the JetDirect box: Connected to 10.0.0.243. Escape character is '^]'. HP JetDirect Please type ? for HELP, or / for current settings / ===JetDirect Telnet Configuration=== Firmware Rev. : J.08.40 MAC Address : 00:30:c1:55:f3:44 Config By : USER SPECIFIED IP Address : 10.0.0.243 Subnet Mask : 255.255.255.0 Default Gateway : 10.0.0.243 Syslog Server : Not Specified Idle Timeout: 90 Seconds Set Cmnty Name : Not Specified Host Name : Not Specified DHCP Config : Disabled Passwd : Disabled IPX/SPX : Disabled DLC/LLC : Disabled Ethertalk : Disabled Port[1] Banner page : Disabled - Port[2] Banner page : Disabled Port[3] Banner page : Disabled - 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: pjl_waitend_byjobname - HP LJ 4100
Sorry for the stupid question, but can someone provide a workaround in the meantime? This one caught me by surprise and I don't yet have time to re-compile with any changes to the waitend routine. I would really like to strip spaces and commas or anything else that could cause a problem (Samba used to do this for you -- no longer). Thanks for your help! _ _ _ _ ___ _ _ _ |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, Fernando Blanco Marcilla wrote: Yes, the problem is in the jobname. When the jobname includes the comma character (,), the printer returns the jobname split in two lines: the first line returned contains the jobname to the comma, and then, the rest of the jobname is in another line. This is why the returned jobname never matches the original jobname, and therefore, you can never obtain the end-of-job condition expected with the pjl_waitend_byjobname option. And the job remains in the queue forever. I think that this is the only small problem with the pjl_waitend_byjobname patch. I think that, in another patch I sent to LPRng list, I avoided this comma-problem by changing somewhere a strcmp statement by a strstr one in the Do_waitend routine. This made the end-of-job detection test less strict. Regards, Fernando Blanco. -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] nombre de Ryan Novosielski Enviado el: jueves, 19 de junio de 2003 19:44 Para: LPRng Mailing List Asunto: LPRng: pjl_waitend_byjobname - HP LJ 4100 Can anyone think of why this file, specfically, would not ever get pjl job/eoj? I killed it a couple of times and resent it, but still... trouble. Is the jobname a problem somehow on this file? I assume it's not the actual data of the file, because that DOES print properly AFAIK. Thanks! cfA007...: Aschaefre@//DXQMD01+7 CA D2003-06-19-12:45:46.445 H130.219.192.177 JOvid: Love: Am J Health Syst Pharm, Volume 59(22) Supplement 8.November 15, 2002.S10-S15 Pschaefre Qljptn246 NOvid: Love: Am J Health Syst Pharm, Volume 59(22) Supplement 8.November 15, 2002.S10-S15 ldfA007ADDR130.219.192.177 UdfA007ADDR130.219.192.177 _ _ _ _ ___ _ _ _ |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. - - 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'
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: Ricoh Afico 350e
On Fri, 20 Jun 2003 14:06:46 -0700 David Bear [EMAIL PROTECTED] wrote: On Fri, Jun 20, 2003 at 03:59:45PM -0400, Ryan Novosielski wrote: PS is an option as far as I know. Mine doesn't have it. :) What do you get, just PS code coming out of the printer? For some reason mine claims on its website that it has PS support, but... it's lying, I have a feeling. yes, ps comes is printed. and the docs for mine also speak of ps but are not clear that is a option... This sounds remarkably like the Sharp AR-161 printer/copier I've worked with in the past. It had a PostScript option available that had to be purchased separately. Even uses port 10001 for printing. (Try and find this beast on Sharp's website...it's like they don't even want to admit to manufacturing/selling this product.) -- John Perkins | University of Wisconsin-Madison Associate Researcher | Department of Computer Science [EMAIL PROTECTED] | 1210 W. Dayton St. 608-262-0438/608-262-9997 FAX | Madison, WI 53706-1685 - 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'
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: Jetdirect 3 ports and Postscript interpreted as TEXT
On Tue, Jun 24, 2003 at 03:57:42PM +0200, Marcello Lupo wrote: Hi to all, nc 10.0.0.243 9102 /usr/share/ghostscript/5.50/examples/tiger.ps l2:\ :lp=:force_localhost:sh:\ :sd=/var/spool/lpd/laserjet:mx#0:\ :rm=hpjetdirect:rp=raw3: why not change the rm/rp entries to [EMAIL PROTECTED] or lp=hpjetdirect%9102 assuming appsocket is 9102 and not 9100 and see if that helps? and if not try hpjetdirect%9100 -- 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'
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'
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'
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'
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