Solved

Serial Printer / Postscript timeout

Posted on 1997-09-12
2
237 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
Comment Utility
check your filter program defined in /etc/printcap. It should contain:

        printf "\004"


0
 

Author Comment

by:eddie_s
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

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 how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

728 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now