Printing files from the command line using 'lpr'

From CUC3
Revision as of 13:28, 29 April 2008 by import>Csw34
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

You cannot print files directly from one of the clusters so the first thing you need to do is transfer the file to your workstation. This can be done using the scp command, more info in the scp tutorial. As a quick example, I want to print the file FES.ps on the printer queue eclipse-col. This will print single sided and in colour. More info about the print queues availiable can be found here.

So - here we go!

  • copy file to your workstation

This will copy the file to csw34's home directory on the workstation serenity:

scp FES.ps csw34@serenity:~/csw34

  • print the file

Change into a shell on your workstation and head to your home directory or wherever you saved the file!, then use the lpr command:

cd ~csw34

lpr -P eclipse-col FES.ps

That should be it! Make sure you specify a printer that you can access! Checking the name of the one in your office is a good start :)