Quote:
Code:
lp -d test.txt Lexmark-Lexmark-Z55 Eric |
To remove jobs from the queue you could also use the web interface of CUPS, very handy.
|
Hurra !! It works !
Code:
$ lp -d LEXMARK text.txt But I could do it with lynx localhost:631 certainly So, now, the most difficult is done. Any idea how to print a pdf from the command line? it will print ascii chars of the pdf, non concerted I know that cups can print PS format, but well, in that case thanks a lot Eric |
it seems that the ultimate solution is :
Code:
pdf2ps somefile.pdf | lpr -P LEXMARK |
Double post, sorry, network glitches here in Spain :d
|
Hi,
If CUPS is handling the printing then you should be able to directly print PDF files from the command line as far as I know. I've printed PDF from commandline to CUPS printing queue on remote server at the office and it works perfectly. No need for other tools. Also according to the CUPS documentation it should print at once. Quote:
Kind regards, Eric |
Quote:
here we go let's try: Code:
~$ lp -d LEXMARK linuxquestions.pdf You are a genious. It works completely. I got my page printed, like it should. I thank you so much. I learned a lot. export PRINTER=LEXMARK is said to make it default. Greetings to Spain. F. |
Hahahaha, me a genious? You're funny. I'm just a guy who takes advantage of the internet :cool:
No, serious, I'm glad it works. Happy Linuxing. Kind regards, Eric |
commands are :
lpstat -v #to see all the printers installed lpq -a #to see the queue for printing lp -d MYPRINTRE document.pdf # to print it lprm JOBID # to delete a job, seen from lpq -a |
All times are GMT -5. The time now is 07:50 PM. |