ITEM: CF3413L

Adding carriage returns to linefeeds with a tty device


ENV:
AIX 3.2.5
7012-3xx
Okidata printer

DESC:
We have Okidata printers defined as tty's and we don't have print
queues.  Our database application printes directly to /dev/tty\# -
I tried printing my errpt and just gets the print job stair-stepped
across the page.  How can I correct this?

ACT:
This occurs when carriage returns are not added to linefeeds.  Either
the AIX lp printer driver or a print queue could add carriage returns
to linefeeds, but since you are using neither of the two, you can add
carriage returns to linefeeds manually....

errpt | sed 's/$/\^M/g' > /dev/tty\#

Where the \^M is generated by hitting CTRL-V and then CTRL-M


Support Line: Adding carriage returns to linefeeds with a tty device ITEM: CF3413L
Dated: September 1996 Category: N/A
This HTML file was generated 99/06/24~13:30:18
Comments or suggestions? Contact us