I want to use some simple line printer for text and debug print-out.
Problem is that that *nix (text) output gives solely LineFeed (LF)
at a line break, not the needed additional Carriage Return (CR).
No deal to fiddle with the dip switches of the printer(s) each time when
some text has to be printed from a Linux on that units, as there are
other OSs which duely give the CR+LF sequence by themselves (and besides,
those [HP] printers can only add LFs to output-given CRs, not vice versa).
So the solution must be soft.
No question neither to reformat the files to print just for that
purpose, they should be left intgeger; and this wouldn't be working with
debugging output anyway.
Thus something like 'cat filename >/dev/lp0' should go through a
simple filter which inserts a CR in front of any LF.
Like, 'cat <{filter-prog <filename} >/dev/lp0
Is there something the like ?
Could it perhaps done with a small bash script ?
// Heimo Claasen // <hammer at revobild dot net> // Brussels 2003-09-26
The WebPlace of ReRead - and much to read ==> http://www.revobild.net
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs