Introduction to Data Structures PRINTING YOUR FILE ON A COM S DEPT MACHINE $Date: 1995/01/10 22:05:00 $ 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 ``lp'' 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 lp -dlp1 foo.C bar.C which prints both files foo.C and bar.C on the printer named ``lp1''. If you want to use the printer lp2, use the command lp -dlp2 foo.C bar.C For different file names, substitute their names for ``foo.C'' or ``bar.C'' above. To check the progress of your print request on ``lp1'', use the command lpstat -plp1 For a different printer, substitute its name for ``lp1'' above. If you decide that you want to cancel printing of all the files you have queued to print on ``lp1'', use the command cancel lp1 which will take them out of the queue. See the manual pages for ``lp'', ``lpstat'', and ``cancel'' for more information. You can also print your file by using ftp to send it to Project Vincent, and then printing it there.