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 [2016/02/03 00:23] – [Printing 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
  
-  createPrintableLab.sh <path_to_lab_directory>+  createPrintableLab <path_to_lab_directory>
      
 For example, if you're in your ''labs'' directory, to print lab1, you'd write For example, if you're in your ''labs'' directory, to print lab1, you'd write
  
-  createPrintableLab.sh lab1+  createPrintableLab lab1
      
 will generate a file called ''lab1.ps'' containing all the printable files in your directory, not including subdirectories.   will generate a file called ''lab1.ps'' containing all the printable files in your directory, not including subdirectories.  
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 ===== 
  
-From your ''cs111'' directory, run the command 
  
-  cp -r labx /home/courses/coursename/turnin/username+===== Printing Files ===== 
 + 
 +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 
 + 
 +For example: 
 +  lpr -Pcslab test.ps
      
-where ''labx'' is the directory of the lab you want to copy, ''coursename'' is your course name, and ''username'' is your username.+The printer name is ''cslab'' when you're in P405 or ''advlab'' if you're in P413. 
  
-If you have your directories set up appropriatelyyou should also be able to run+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''.
  
-  turnin.sh labx 
  
labs/for_lab.1454458986.txt.gz · Last modified: 2016/02/03 00:23 by admin
CC Attribution-Noncommercial-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0