LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 02-09-2005, 07:01 AM   #1
blas
Member
 
Registered: Apr 2003
Distribution: fc5, ubuntu, rhel
Posts: 59

Rep: Reputation: 15
client-error-bad-request when trying to print with lp


Hi

I am unable to print anything with the lp command, Im trying:
lp -d <printer> <filename>

I have an Epson FX-80 printer with a raw driver and CUPS. This works great, I can launch test pages with no problem...

But now when I try to print a plain text file using lp command this message is always returned:
lp: unable to print file: client-error-bad-request

I really need the lp command because is the command used by our Oracle system to print (whe are using RedHat Enterprise 3)

So... the printers is well configured as CUPS can print but... why cant I print with the lp or lpr commands? This was working 2 days ago and "suddenly" it stopped to work.

Thanks in advance
Regards
 
Old 02-09-2005, 07:54 AM   #2
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
Here's the commands that I use....

Send print job to local printer from command line: lp < file.txt
Send print job to remote printer from command line: ssh root@sony "lp -" < file.txt
 
Old 02-09-2005, 09:23 AM   #3
blas
Member
 
Registered: Apr 2003
Distribution: fc5, ubuntu, rhel
Posts: 59

Original Poster
Rep: Reputation: 15
Hi,

Thanks for your update.

That doesnt seem to work for me. The printer is a windows printer, I connect with samba

And Oracle applications use "lp -d <device> <file>" so I really need this commands to work at OS level.

It stopped running syuddenly, Ive sent at least 50 print jobs yesterday with this command.

And the printer is well configured as I can send test pages from CUPS or the printer admin tool...

Thanks
Regards

pd: the distro is Redhat Enterprise 3.0
 
Old 02-09-2005, 09:38 AM   #4
homey
Senior Member
 
Registered: Oct 2003
Posts: 3,057

Rep: Reputation: 56
Maybe one of the latest Windows updates boogered it somehow.
 
Old 02-09-2005, 10:30 AM   #5
blas
Member
 
Registered: Apr 2003
Distribution: fc5, ubuntu, rhel
Posts: 59

Original Poster
Rep: Reputation: 15
but from another linux machine I can do it with the same configuration and printer
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
opera: client-error-bad-request landroni Linux - Software 0 11-22-2005 10:22 AM
network programming -- bad request mehesque Programming 2 09-21-2004 01:28 PM
lpr: unable to print file: client-error-not-found rickenbacherus Debian 1 07-29-2004 04:39 PM
CUPS print client-error stabu Linux - Newbie 2 06-27-2004 04:44 PM
Dispatch_input: bad request line Advocate Linux - Security 3 05-04-2001 02:31 AM


All times are GMT -5. The time now is 01:36 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration