Solved

Serial Printer / Postscript timeout

Posted on 1997-09-12
2
246 Views
Last Modified: 2013-12-15
I have an Apple LaserWriter IIf connected to my Linux 2.0.30 machine. The connection is on ttyS0. The problem is that after the printer completes the job, it seems to receive some more data from the computer and keeps flashing it's busy light. Eventually a timeout error page is printed. With the same cable the printer works perfectly with a different Win 95 machine. However, in Win 95 I have to specify that a ctrl-D be added before and after the job.

I want to use the Linux box as a print server. It is running Samba and I can print (albeit with the above problem) via Samba from Win 95. I have also tried printing to a file on Win 95 and dumping the file using cat file > /dev/ttyS0 with the same result. I did discover if I unplug the cable after the job finishes, I still get the timeout error but the printer goes into it's normal ready mode. I have tried many variations on the ttyS0 settings, including setting eof=<undef> from it's default of eof=^D. But it seems extra data is being sent to the printer after the job finishes.

Any clues?
0
Comment
Question by:eddie_s
2 Comments
 
LVL 51

Accepted Solution

by:
ahoffmann earned 100 total points
ID: 1629796
check your filter program defined in /etc/printcap. It should contain:

        printf "\004"


0
 

Author Comment

by:eddie_s
ID: 1629797
Let me add a little more detail. I have confirmed that the file that is being sent already has ^-D characters prepended and appended. Also, from the Win95 side, the only thing that is different between the direct connection and going through Samba is the port setting. I left everything else as it was.
Are the ^-D chars being stripped from the file and they have to be added back in with the filter?

0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Join Greg Farro and Ethan Banks from Packet Pushers (http://packetpushers.net/podcast/podcasts/pq-show-93-smart-network-monitoring-paessler-sponsored/) and Greg Ross from Paessler (https://www.paessler.com/prtg) for a discussion about smart network …
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question