Printing files from the command line using 'lpr'
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 on the printer called eclipse. More info about the print queues available 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. :)
WARNING: you cannot print PDFs like this! Instead, open them on your workstation with Adobe Acrobat Reader and print them from there