LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Redirection > /dev/lp0 (https://www.linuxquestions.org/questions/linux-newbie-8/redirection-dev-lp0-93005/)

XT8088 09-15-2003 09:51 AM

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

__

koen plessers 09-20-2003 04:40 AM

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

XT8088 09-20-2003 06:36 PM

Thanks for the reply.

Both your methods work.

Thanks

_


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