Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
labs:for_lab [2017/01/29 22:30] – [Creating Printable Files] adminlabs:for_lab [2022/01/24 19:43] (current) – [Submitting Your Code Electronically to Your Turnin Directory] admin
Line 2: Line 2:
  
  
-===== Printing Files =====+===== Submitting Your Code Electronically to Your Turnin Directory =====
  
-To print from the command-line, you can use the ''lpr'' command.  **Do not try to print PDF files or images this way.**  The syntax of the print command is  
  
-  lpr -P<printername> filename+If you have your directories set up appropriately (i.e., your ''lab'' directory is in your ''cs111'' directory), you should be able to run
  
-For example: +  turnin labx
-  lpr -Pcslab test.ps +
-   +
-The printer name is ''cslab'' when you're in P405 or ''advlab'' if you're in P413.+
  
-The command ''lpr'' means to print the file. The option 'P' says which printer to use (one of the CS lab printers), and the argument says which file to print--in this case ''test.py''.+where ''labx'' is the name of the lab you are submitting.  Using this command will ensure that all your permissions are set up appropriately.
  
 +
 +If you want to know what's going on behind the hood, you could run this command from your ''cs111'' directory:
 +
 +  cp -r labx /csci/courses/coursename/turnin/username
 +  
 +where ''labx'' is the directory of the lab you want to copy, ''coursename'' is your course name, and ''username'' is your username.
 ===== Creating Printable Files ===== ===== Creating Printable Files =====
  
-To create a condensed, printable file of your lab, use the ''createPrintableLab.sh'' command.+To create a condensed, printable file of your lab, use the ''createPrintableLab'' command.
  
 The syntax of the command is The syntax of the command is
Line 32: Line 34:
  
 If your directory contains unprintable files, like binary files (e.g., .pyc or image files), you'll see an error message about unknown or special characters.  Remove those files and run the command again. If your directory contains unprintable files, like binary files (e.g., .pyc or image files), you'll see an error message about unknown or special characters.  Remove those files and run the command again.
 +
 +
 +
  
 ===== Viewing a PS File: evince ===== ===== Viewing a PS File: evince =====
  
-To view a file, use the ''evince'' command.  For example+To view a file, use the ''evince'' command.   
 + 
 +  evince postscriptfile.ps & 
 + 
 +where ''postscriptfile.ps'' is the name of the file that you want evince to open. 
 + 
 +For example
  
   evince lab1.ps &   evince lab1.ps &
Line 43: Line 54:
 If you can't use the terminal again, you probably need to close ''evince''. If you can't use the terminal again, you probably need to close ''evince''.
  
-===== Copying to Your Turnin Directory ===== 
  
  
-If you have your directories set up appropriately (i.e., your ''lab'' directory is in your ''cs111'' directory), you should be able to run+===== Printing Files =====
  
-  turnin.sh labx+To print from the command-line, you can use the ''lpr'' command **Do not try to print PDF files or images this way.**  The syntax of the print command is 
  
-where ''labx'' is the name of the lab you are submitting.  Using this command will ensure that all your permissions are set up appropriately.+  lpr -P<printername> filename
  
 +For example:
 +  lpr -Pcslab test.ps
 +  
 +The printer name is ''cslab'' when you're in P405 or ''advlab'' if you're in P413.
  
-If you want to know what's going on behind the hood, you could run this command from your ''cs111'' directory: 
  
-  cp -r labx /csdept/local/courses/coursename/turnin/username +The command ''lpr'' means to print the file. The option 'P' says which printer to use (one of the CS lab printers), and the argument says which file to print--in this case ''test.ps''.
-   +
-where ''labx'' is the directory of the lab you want to copy, ''coursename'' is your course name, and ''username'' is your username.+
  
  
labs/for_lab.1485729035.txt.gz · Last modified: 2017/01/29 22:30 by admin
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0