Unix Programming - /dev/lp0 works no more!

This is Interesting: Free IT Magazines  
Home > Archive > Unix Programming > January 2004 > /dev/lp0 works no more!





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author /dev/lp0 works no more!
Kris Katterjohn

2004-01-23, 5:07 pm

a few weeks ago X stopped working on my slackware9 drive, and i wrote
a book report on there in regular text format. so, i wrote a little
printing app that prints the input file by simply opening /dev/lp0 and
i set a counter for line breaks at 79 characters for correct the page
size and correct formatting and blah blah blah and everything worked
fine. i fixed a little bit of the report using mcedit and then ran it
through the app with a laser printer in the regular printer port in my
computer.


so, i ended up reinstalling slackware on another drive to fix X and
all and i copied my code and things over. reinstalled the kernel and
everything worked fine. or so i thought... since i only have
winprinters, i figured i'd print this thing off using my app. i
recompile it, run it, but /dev/lp0 doesn't work.

(on the same computer as before) i did:


[root@Meryl]$ echo "yes" > /dev/lp0
/dev/lp0: no such device



as far as i can remember, i reinstalled everything (slackware9,
kernel, etc.) the same way as before, and on the same computer, with
the same printer, but it just doesn't seem to work.

i even took my drive to another computer, with another printer, and
tried lp0, lp1, and lp2.. to no prevail.

not that it matters, but i'm running Slackware 9 with kernel
2.6-test9.

i went and reinstalled the kernel again insuring most of the parallel
port options were enabled, but it still didn't work

ideas?
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com