Re: Printing from console

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 02-Oct-2003/08:45 +0200, Simon <simon@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote:
>one little question, how can I print on an networkprinter using the
>terminal?  when its possible i want to print text file also as pdf etc.

Use this to print either text or PostScript:

  lpr -P printername filename


To convert a text file to PDF:

  a2ps --columns=1 --medium=Letter --portrait \
    filename.txt -o - | ps2pdf - > filename.pdf


-- 
Anthony E. Greene <mailto:Anthony%20E.%20Greene%20%3Cagreene@xxxxxxxxx%3E>
OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26  C484 A42A 60DD 6C94 239D
AOL/Yahoo Messenger: TonyG05    HomePage: <http://www.pobox.com/~agreene/>
Linux. The choice of a GNU generation <http://www.linux.org/>


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux