Re: Strange behavior of lpr+lpd resolved

1996-11-24 Thread Simon Martin
Mario Giammarco wrote:

> I cannot understand why a cable let some program print and other no.
This is because there different handshaking schemes that can be implemented
on the Centronics interface. I don't have a copy of the IEEE specification
at the moment so I can't be more specific.

One of the big problems about the Centronics interface is that there are
2 specifications, which use the BUSY/READY signals in a slightly different
way. Another big problem is that the IEEE specification is an evergreen
document, i.e. it is constantly changing.

Hope this helps


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]


Re: Strange behavior of lpr+lpd

1996-11-23 Thread David Frey
On Thu, 21 Nov 96 14:48:07 +0100, [EMAIL PROTECTED] writes:
>> Which version of gs dou you use?
>Version 3.33 it is not a debian package, I installed it manually.
(well, there is one in non-free)

>> >If I invoke the filter with /etc/filter.ps > >>/dev/lp1 the printer prints.
>> Ok. So for so good.
>> >If I do lpr filetoprint.ps nothing appear. If I do lpq it says
>> >"lp is ready and is printing" but it is not true.
>> This doesn't say anything. But you do see any pending jobs in the
>> queue? A la: ([EMAIL PROTECTED]) ~$lpq stylus is ready and printing Rank
>> Owner Job Files Total Size active david 312 demo.c 180 bytes
>>
>There is the pending job. Lpc says queuing is enabled printing is
>enabled 1 entry in spool area etc
Fine.

>> PS: What was your success with magicfilter?
>No success with magicfilter no with apsfilter
Bad.

>PPS: Have you read the
>> Printing-HOWTO?
>Obviously.
Sorry. Just wanted to be sure.

>I begin to suspect there is a cable problem, with windows95 and
>directly with postscript I can print, but when lpq says that lp is
>ready and printing I notice that the data led on my printer lights,
>and sometimes the printer loads a sheet of paper. I will try
>another printer cable. But the question is, what "handshake" the
>lpd do with the printer? I mean, what return value/signal lpd would
>receive from the printer before send another data?

lpd itself doesn't handshake. It only spools the data and sends it to
/dev/lp? (the one you gave in /etc/printcap). If you can print directly
via 'cat filetoprint.txt > /dev/lp?' (as root) lpd should also work (modulo
permissions). You could report back the permissions of /dev/lp?, /usr/sbin/lpd
and your filters.
If you can't print directly there is something wrong with the driver (I,
for example, had to put the driver into polling mode, using IRQ 7 didn't work
with my Epson Stylus !?)

Later, 
  David



--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]


Re: Strange behavior of lpr+lpd : apology

1996-11-22 Thread Karl M. Hegbloom

 I apologize for having sent that huge uuencoded gif to the list; it
never even occurred to me to check the size of the file.

 The jest perhaps would have been met with more appreciation had I
cropped the .gif down to the small section showing the 'bleck' faces
in the printcap file.

 I'll never do that again...

--
Karl M. Hegbloom <[EMAIL PROTECTED]>
http://www.teleport.com/~karlheg
(K0D) AYG-GE01  Portland, OR, USA
:) Proudly running Linux 2.0.25 transname
and Debian GNU public software!


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]


Re: Strange behavior of lpr+lpd

1996-11-21 Thread Hunter Marshall
I can not comment on the thread as developed so far, but let me add that
since I have moved to debian1.1, lpr does not reliably print to a printer
that worked for 0.93. 
The printer is an Apple 16/600 accessed directly via tcp/ip. If i send a
printjob to a different IP address that is a Gatorbox that forwards jobs to
the same 16/600, all is fine. 

I originally thought the problem was for printjobs sent to the printer via
stdin (ie the "print" button xpdf, etc), but I had a couple of failures for
regular files. The final straw was when my linux box apparently was flooding
the printer with some sort of communication, thus choking it for hours at a
time.

I am afraid that since this was at work, I have not had time to pursue a
rigorous debug of the situation. I have started to just use Windows for now
since Word documents emailed as attachments seem to be our stock in trade. I
had xbin in my old Linux but have not tracked it down again to build it for
the new kernel. 

Just rumbling to see if this rings a bell. i can record detailed release
numbers if necessary (I'm not in Linux  :-(   )

hunter

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]


Re: Strange behavior of lpr+lpd

1996-11-21 Thread mgiammarco

You wrote:
>
> Which version of gs dou you use?

Version 3.33 it is not a debian package, I installed it manually.

>
> >If I invoke the filter with /etc/filter.ps  >>/dev/lp1 the printer prints.
>
> Ok. So for so good.
> >If I do lpr filetoprint.ps nothing appear. If I do lpq it says
> >"lp is ready and is printing" but it is not true.
> This doesn't say anything. But you do see any pending jobs in the
> queue? A la: ([EMAIL PROTECTED]) ~$lpq stylus is ready and printing Rank
> Owner Job Files Total Size active david 312 demo.c 180 bytes
>
There is the pending job. Lpc says queuing is enabled printing is
enabled 1 entry in spool area etc


>
> PS: What was your success with magicfilter?

No success with magicfilter no with apsfilter


PPS: Have you read the
> Printing-HOWTO?

Obviously.


I begin to suspect there is a cable problem, with windows95 and
directly with postscript I can print, but when lpq says that lp is
ready and printing I notice that the data led on my printer lights,
and sometimes the printer loads a sheet of paper. I will try
another printer cable. But the question is, what "handshake" the
lpd do with the printer? I mean, what return value/signal lpd would
receive from the printer before send another data?

---
Mario Giammarco   |   Tel/FAX +39-545-22965
Via Calamandrei,5 |[EMAIL PROTECTED]
48022 Lugo (RA) -- ITALY  |   [EMAIL PROTECTED]

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]


Re: Strange behavior of lpr+lpd

1996-11-21 Thread rac0043
You wrote:
>
> Which version of gs dou you use?

Version 3.33 it is not a debian package, I installed it manually.

>
> >If I invoke the filter with /etc/filter.ps  >>/dev/lp1 the printer prints.
>
> Ok. So for so good.
> >If I do lpr filetoprint.ps nothing appear. If I do lpq it says "lp
> >is ready and is printing" but it is not true.
> This doesn't say anything. But you do see any pending jobs in the
> queue? A la: ([EMAIL PROTECTED]) ~$lpq stylus is ready and printing Rank
> Owner Job Files Total Size active david 312 demo.c 180 bytes
>
There is the pending job. Lpc says queuing is enabled printing is  
enabled 1 entry in spool area etc


>
> PS: What was your success with magicfilter?

No success with magicfilter no with apsfilter


 PPS: Have you read the
> Printing-HOWTO?

Obviously.

I begin to suspect there is a cable problem, with windows95 and  
directly with postscript I can print, but when lpq says that lp is  
ready and printing I notice that the data led on my printer lights,  
and sometimes the printer loads a sheet of paper. I will try another  
printer cable. But the question is, what "handshake" the lpd do  
with the printer? I mean, what return value lpd would receive from  
the printer before send another data?

---
Mario Giammarco   |   Tel/FAX +39-545-22965
Via Calamandrei,5 |[EMAIL PROTECTED]
48022 Lugo (RA) -- ITALY  |   [EMAIL PROTECTED]

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]


Re: Strange behavior of lpr+lpd

1996-11-20 Thread Lars Wirzenius
[ Please don't Cc: me when replying to my message on a mailing list. ]

"Karl M. Hegbloom":
>  With XEmacs and ViewMail, the problem becomes obvious!  I've enclosed
> a uuencoded screenshot to demonstrate:

It is _not_ a good idea to post 140 kilobytes to a public
mailing list.

Please put it on a web or ftp site instead, and post just the URL.
Or offer to send it to people who want it.

-- 
Please read  before mailing me.
Please don't Cc: me when replying to my message on a mailing list.




pgpGoOoxlMXFI.pgp
Description: PGP signature


Re: Strange behavior of lpr+lpd

1996-11-19 Thread Karl M. Hegbloom
 With XEmacs and ViewMail, the problem becomes obvious!  I've enclosed
a uuencoded screenshot to demonstrate:

begin 664 mryuck.jpg
M_]C_X``02D9)[EMAIL PROTECTED]@!)0U)%051/[EMAIL PROTECTED]@5F5R2`](#7J#A(6&AXB)BI*3
ME)66EYB9FJ*CI*6FIZBIJK*SM+6VM[BYNL+#Q,7&Q\C)RM+3U-76U]C9VN'B
MX^3EYN?HZ>KQ\O/T]?;W^/GZ_\0`'P$``P$!`0$!`0$!`0$"`P0%
M!@<("[EMAIL PROTECTED]"!`0#!`<%!`0``0)W``$"`Q$$!2$Q!A)!40=A<1,B
M,H$(%$*1H;'!"2,S4O`58G+1"A8D-.$E\1<8&1HF)[EMAIL PROTECTED]@Y.D-$149'
M2$E*4U155E=865IC9&5F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TECTED]
[EMAIL PROTECTED]/$5Z9]JF_Y[O_WT:/M4W_/=_P#OJCZ]4[(/[-H^
M9YG_`&IJ_P#T+.J_^`LO_P`11_:FK_\`0LZK_P"`LO\`\17HW]J?Z;]C^TOY
M_E^9MR?NYQG/UJ?[3/\`\]I/^^C1]>[EMAIL PROTECTED]:FK_\`0LZK_P"`LO\`
M\11_:FK_`/0LZK_X"R__`!%>F_:9_

Re: Strange behavior of lpr+lpd

1996-11-18 Thread rac0043
You wrote:
> Maybe, but please post your filter(s) and the /etc/printcap file,
> so that we can examine the problem.

This is my printcap:

lp|Generic dot-matrix printer entry:\
:lp=/dev/lp1:\
:sd=/var/spool/lpd/lp:\
:if=/etc/filter.ps:\
:af=/var/log/lp-acct:\
:lf=/var/log/lp-errs:\
:pl#66:\
:pw#80:\
:pc#150:\
:mx#0:\
:sh:

This is my filter.ps:

#!/bin/sh

/usr/local/bin/gs -q -sDEVICE=stcolor \
-sPAPERSIZE=a4  -dNOPAUSE\
-r360x360 -dSAFER -dOutputCode=512 -sOutputFile=- -


If I invoke the filter with /etc/filter.ps /dev/lp1 the printer prints.

If I do lpr filetoprint.ps nothing appear.
If I do lpq it says "lp is ready and is printing" but it is not true.
If in the printcap I change the "if" directive with "of" the lpq  
command says that there is not the lpd running but it is not true  
because ps -aux shows it running.



---
Mario Giammarco   |   Tel/FAX +39-545-22965
Via Calamandrei,5 |[EMAIL PROTECTED]
48022 Lugo (RA) -- ITALY  |   [EMAIL PROTECTED]

--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED]


Re: Strange behavior of lpr+lpd

1996-11-18 Thread David Frey
On Sat, 16 Nov 96 23:04:57 +0100, [EMAIL PROTECTED] writes:
>I wrote a new filter and nothing come out of the printer. So I  
>invoked the filter manually with the output redirected to /dev/lp1  
>and all worked fine. I also tried apsfilter and magicfilter but they  
>did not function. So, I think the problem is in lpr+lpd.

Maybe, but please post your filter(s) and the /etc/printcap file, so
that we can examine the problem.

David

--
This message was distributed manually by [EMAIL PROTECTED] after the list
initially failed to distribute it.