![]()
|
Areas SysAdmin Topics
|
Tech Tip: How to Cancel a Print Job When You Don't Know the Name of the Printer (in English and Portuguese)A) English I work at an Hospital, with more than 1500 pc's and many printers. Sometimes, users print jobs with more than 100 pages, by mistake, and ask us to cancel the printing jobs. Now, if they tell us the name of the printer, we cancel it, by issuing the following command:
lpstat -t | grep name_of_the_printer
-> to see the printing jobs
cancel -e name_of_the_printer
-> to cancel the printing jobs
But if, the user can't tell us, the name of the printer, we issue the following command:
lpstat -u user_name
-> to see the printer, the user is printing to.
cancel -e name_of_the_printer
-> to cancel the user printing jobs.
B) Português Eu trabalho num hospital, com mais de 1500 pc's e muitas impressoras. Por vezes, os utilizadores imprimem trabalhos com mais de 100 páginas, por engano e pedem-nos para os cancelar. Agora, se eles nos disserem qual o nome da impressora, nós cancelamos, executando o seguinte comando:
lpstat -t | grep nome_da_impressora
-> para ver os trabalhos por imprimir.
cancel -e nome_da_impressora
-> para cancelar os trabalhos.
Mas, se o utilizador não souber, o nome da impressora, executamos o seguinte comando:
lpstat -u nome_do_utilizador
-> para ver a impressora, para onde o utilizador imprime.
cancel -e nome_da_impressora
-> para cancelar os trabalhos.
|