LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-17-2007, 10:32 AM   #1
lsutiger
LQ Newbie
 
Registered: Aug 2007
Posts: 9

Rep: Reputation: 0
Problems dumping raw text to lpt port


Hi All!
I am having problems dumping raw text to a line printer. I just switched over my office computer ( dual boot ) to Ubuntu 7.04. I have several batch files in Windows that I rewrote for bash in Linux.
One of the problems I had was copying files to a printer. The DOS equivalent is:
copy file.txt lpt1

Well, I used cat file.txt >/dev/lp0

That worked great for 2 days! Then the printer jammed...After that I tried turning off the printer and resetting the paper. When I tried the command, I received an error of 'permission denied' when I used sudo. When I logged in as root, nothing happened.

So I reboot into windows in order to have the reports print overnight. After getting to the office, I log back into ubuntu. Now I am getting the error that 'the resource is busy' when I use sudo, and nothing with root.

Is it possible that when the printer jammed and all of the files were not 'dumped' to the printer, that the files are in limbo and trying to print, but something is telling linux that the port is bad? (I know it is not as I am using windows to print the reports daily.)

If so, how do I clear this up? If not, what else could be my problem?
This should be a pretty simple task, I just don't have the know how yet to make it easy.

Thanx on advance!
Ubuntu 7.04
Okidata ML 590
 
Old 08-18-2007, 02:53 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Hi, and welcome to LQ!


Have a look at the printers status on http://localhost:631


Cheers,
Tink
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Conner Tape on LPT port? FTape? RuralTurtle Linux - Hardware 2 01-19-2006 03:39 PM
[how] Install a parallel Port (LPT) tneto Mandriva 4 12-28-2005 08:15 PM
Squid dumping text to sreen Palula Linux - Software 2 11-24-2005 09:02 PM
Installing Kouwell Multi IO Card with LPT Port jakkals Linux - Hardware 1 01-20-2005 11:00 AM
No LPT port for printer!! akudewan Linux - Hardware 2 08-20-2004 12:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:14 PM.

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
Open Source Consulting | Domain Registration