how do I send a file to /dev/lpt0
Todd A. Jacobs
codegnome.consulting+ubuntu at gmail.com
Sun Apr 17 02:06:57 UTC 2011
On Sat, Apr 16, 2011 at 6:24 PM, Tom Sparks <tom_a_sparks at yahoo.com.au> wrote:
>
> how do I send a file to /dev/lpt0 ?
> the file is ASCII text if that makes a difference
What you probably want to do is actually print the file, using the lp
command, once you've set up a printer. However, the answer to your
original question is to redirect output to the device. For example:
cat <file> > /dev/lpt0
That said, I still think you're generally better off using CUPS and lp or lpr.
More information about the ubuntu-users
mailing list