Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

syntax for printing to a serial printer

Status
Not open for further replies.

njdnjd

MIS
Jan 21, 2002
8
US
I am stuck on the syntax for printing a file to a serial printer. Any ideas?
 
Hi:

I'm assuming you want to call this from a shell script. Providing the serial printer is correctly set up with the OS, simply cat the file via redirection to the printer device:

cat <my_file> > /dev/<my_serial_print_device>

Regards,

Ed
Schaefer
 
Thank you, the cat syntax worked! I had tried the lp and lpr command and it didn't work and I thought it was because it was a serial printer. Either way it's printing now so I am happy.....thanks again, this site is a gold mind!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top