LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 09-15-2003, 09:51 AM   #1
XT8088
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, 04:40 AM   #2
koen plessers
Member
 
Registered: Aug 2003
Location: Belgium
Distribution: Mint
Posts: 191

Rep: Reputation: 30
Hello

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.

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

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

Both your methods work.

Thanks

_
 
  


Reply


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 11:28 AM
Why no /dev/lp0 in CUPS sharper Slackware 0 12-25-2004 07:19 PM
/dev/lp0 not recognized tiagobt Linux - General 8 09-27-2004 01:26 PM
Who stole my /dev/lp0 ? Timer Linux - Hardware 0 07-13-2004 03:26 PM
No /dev/lp0 in Gentoo 1.4 darin3200 Linux - General 2 12-28-2003 06:54 PM


All times are GMT -5. The time now is 11:10 AM.

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