Re: [SLUG] SuSE 9 and apt

From: Eben King (eben1@tampabay.rr.com)
Date: Sat Oct 25 2003 - 18:40:40 EDT


On Sat, 25 Oct 2003, Eric Jahn wrote:

> just make a new character device which will be called /dev/lp0. I think this
> is low risk and easy to undo if it doesn't work:
> #mknod /dev/lp0 c 6 0
> #chown root.lp /dev/lp0
> #chmod 660 /dev/lp0 (myself I start with 777 then back off to 660)
>
> then check to see if it's working with these low-level commands:
> # touch test.txt
> # echo "Hello World" > test.txt
> # cat test.txt > /dev/lp0

You can skip test.txt:

# echo Hello World > /dev/lp0

With some printers you may need to do this instead:

# echo -e Hello World\\f > /dev/lp0

\f = form feed

That should work with bash's echo; unsure about other "echo"s.

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar

Drive nail here > < for new monitor.

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:10:29 EDT