Com S 342 --- Principles of Programming Languages PRINTING YOUR FILE ON A COM S DEPT MACHINE $Date: 1997/08/21 14:54:48 $ A file containing your homework, as typed in with emacs, is an ASCII file. An ASCII file is simply one that contains normal characters. ASCII files can be printed using the command ``lpr'' on a Com S department machine. Some other files, such as the output of a compiler, cannot be so printed. However, most of the files you will deal with, including your programs and output of programs are ASCII files. If you can read it with emacs or look at it with ``cat'', then it is an ASCII file. The normal way to print an ASCII file is to send it to one of the printers in 115 or 116 Atanasoff and then retrieve your output. A sample command is lpr foo.scm bar.scm which prints both files foo.scm and bar.scm on the default line printer for your machine. For different file names, substitute their names for ``foo.scm'' or ``bar.scm'' above. To check the progress of your print request, use the command lpq You will see something like the following on the screen. Rank Owner Job Files active leavens 786 .emacs 3907 bytes 1st leavens 787 .login 363 bytes 2nd myname 790 myfile.txt 2198 bytes 3rd ruby 791 printing.txt 1571 bytes If you decide that you want to cancel printing a file you have queued to print (such as ``myfile.txt'' above), use the command lprm 790 which will take job 790 out of the queue (this will not work unless you are the owner). See the manual pages for ``lpr'', ``lpq'', and ``lprm'' for more information. See also the Com S dept. FAQ at the following URL for more information. http://www.cs.iastate.edu/help/faq.html You can also print your file by using ftp to send it to Project Vincent, and then printing it there.