Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
labs:for_lab [2016/03/15 01:17] – [Copying to Your Turnin Directory] admin | labs: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, | ||
- | lpr -P< | + | If you have your directories set up appropriately (i.e., your '' |
- | For example: | + | turnin labx |
- | lpr -Pcslab test.ps | + | |
- | + | ||
- | The printer name is '' | + | |
- | The command | + | where '' |
+ | |||
+ | If you want to know what's going on behind the hood, you could run this command from your '' | ||
+ | |||
+ | cp -r labx / | ||
+ | | ||
+ | where '' | ||
===== Creating Printable Files ===== | ===== Creating Printable Files ===== | ||
- | To create a condensed, printable file of your lab, use the '' | + | To create a condensed, printable file of your lab, use the '' |
The syntax of the command is | The syntax of the command is | ||
- | createPrintableLab.sh < | + | createPrintableLab < |
| | ||
For example, if you're in your '' | For example, if you're in your '' | ||
- | createPrintableLab.sh lab1 | + | createPrintableLab lab1 |
| | ||
will generate a file called '' | will generate a file called '' | ||
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. | 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. | ||
+ | |||
+ | |||
+ | |||
===== Viewing a PS File: evince ===== | ===== Viewing a PS File: evince ===== | ||
- | To view a file, use the '' | + | To view a file, use the '' |
+ | |||
+ | evince postscriptfile.ps & | ||
+ | |||
+ | where '' | ||
+ | |||
+ | 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 '' | If you can't use the terminal again, you probably need to close '' | ||
- | ===== Copying to Your Turnin Directory ===== | ||
- | If you have your directories set up appropriately (i.e., your '' | + | ===== Printing Files ===== |
- | turnin.sh labx | + | To print from the command-line, |
- | where '' | + | lpr -P< |
+ | For example: | ||
+ | lpr -Pcslab test.ps | ||
+ | | ||
+ | The printer name is '' | ||
- | If you want to know what's going on behind the hood, you could run this command from your '' | ||
- | cp -r labx / | + | The command |
- | + | ||
- | where '' | + | |