Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
General
cancel
Showing results for 
Search instead for 
Did you mean: 

print fails on Serial attached printer

Maaz
Valued Contributor

print fails on Serial attached printer

after attaching this printer via serial cable(to serial port), I did the following
# ls > /dev/ttyS0

after 2 or 3 seconds, I got the prompt back, but nothing prints.

no messages/hints in dmesg and /var/log/messages.

please help
6 REPLIES
Tim Nelson
Honored Contributor

Re: print fails on Serial attached printer

did you set up the port baud rate, parity, xon/xoff, etc ?

stty can be used.

this is stretching my memory, you man need to do some googling...
Steven Schweda
Honored Contributor

Re: print fails on Serial attached printer

> [...] this printer [...]

Not a useful description.

> [...] serial cable [...]

You think that there's only one kind of
serial cable?

Bad/wrong cable?

Mismatched serial port characteristics
(speed, bits, parity)?

man stty
Huc_1
Honored Contributor

Re: print fails on Serial attached printer

Here on fedora 12

ls -l /dev/ttyS0
crw-rw----. 1 root dialout 4, 64 déc 24 06:45 /dev/ttyS0

Perhaps you need to check that

enjoy, life.

Jean-Pierre Huc
Smile I will feel the difference
Maaz
Valued Contributor

Re: print fails on Serial attached printer

its SLES 10 SP2

# ls -l /dev/ttyS0
crw-rw---- 1 root uucp 4, 64 Dec 24 15:10 /dev/ttyS0

# lpstat -t
scheduler is running
system default destination: printer
device for printer: serial:/dev/ttyS0?baud=9600
printer accepting requests since Jan 01 00:00
printer printer is idle. enabled since Jan 01 00:00

# stty -F /dev/ttyS0
speed 9600 baud; line = 0;
-brkint -imaxbel

# stty -a < /dev/ttyS0
speed 9600 baud; rows 0; columns 0; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = ; eol2 = ; swtch = ; start = ^Q; stop = ^S; susp = ^Z;
rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 hupcl -cstopb cread clocal -crtscts
-ignbrk -brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon -ixoff -iuclc -ixany -imaxbel -iutf8
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0 vt0 ff0
isig icanon iexten echo echoe echok -echonl -noflsh -xcase -tostop -echoprt echoctl echoke

Steven Schweda
Honored Contributor

Re: print fails on Serial attached printer

> # stty -a < /dev/ttyS0
> [...]

Wonderful. Now, if we knew anything at all
about the configuration of the printer, or
the cable, ...

If you can't supply any useful information,
then you might do better with prayer to the
all-knowing deity of your choice.
haytham_hosny
Esteemed Contributor

Re: print fails on Serial attached printer

Hi ,

please go through the below link

http://aplawrence.com/Unixart/printers.html

hope this helps you

Thanks
Haytham Hosny
Haytham Hosny