Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 09-15-2003, 10:51 AM   #1
LQ Newbie
Registered: Sep 2003
Distribution: RH9
Posts: 9

Rep: Reputation: 0
Redirection > /dev/lp0

The following yields one line on the printer then the printer hangs.
Printer is an HP-520:

fdisk -l > /dev/lp0

I suspect it is the CR/LF vs just LF "thing".

Can I use redirection in this manner under Linux ??

My workaround is:

fdisk -l > disklist
kedit disklist
rm disklist

I print in KEDIT

Old 09-20-2003, 05:40 AM   #2
koen plessers
Registered: Aug 2003
Location: Belgium
Distribution: Mint
Posts: 191

Rep: Reputation: 30

The command you used is correct, so that can't be the problem.
Have you tried:

fdisk -l > /tmp/fdisk.txt
lpr /tmp/fdisk.txt

An other possibility:

fdisk -l | lpr

Maybe one of the above results in error messages which can help.

Old 09-20-2003, 07:36 PM   #3
LQ Newbie
Registered: Sep 2003
Distribution: RH9
Posts: 9

Original Poster
Rep: Reputation: 0
Thanks for the reply.

Both your methods work.




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/lp0 doesn't exists conio Linux - Hardware 26 01-12-2013 12:28 PM
Why no /dev/lp0 in CUPS sharper Slackware 0 12-25-2004 08:19 PM
/dev/lp0 not recognized tiagobt Linux - General 8 09-27-2004 02:26 PM
Who stole my /dev/lp0 ? Timer Linux - Hardware 0 07-13-2004 04:26 PM
No /dev/lp0 in Gentoo 1.4 darin3200 Linux - General 2 12-28-2003 07:54 PM

All times are GMT -5. The time now is 02:00 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration