One way to print/view your source code is to get a copy to your
own computer. Assignment 1
describes several possibilities, one of which is to simply email your
program to yourself from unix.
To do this, I suggest using pine,
a simple email program provided by unix.
You will be sending an email to yourself which means you can then login
to your usual email and have a local copy.
The steps you need to take appear below. Beware that steps 2 and
3 may not apply to you - don't worry if they don't. These
commands are not case sensitive, so there is no need to hold down shift
at any time.
- start
pine at the unix prompt: $
pine
- (may
not apply) enter E to skip the
welcome screen
- (may
not apply) enter N to decline
the "move" file request
- at
the main menu, enter C
(compose) to start a new email
- enter
your main email address in the To:
field
- hold
down Control, press J (attach
command - Ctrl-J)
- now
do Ctrl-T to view the files
- use
your arrow keys and enter to find your file
- you
probably need to go into private/java
to find your program
- hit
enter when you have found
it
- just
hit enter to send without a
comment
- back
at the compose screen, now do Ctrl-X to send
- hit
Y to confirm
- hit
Q to quit
- hit
Y to confirm
- now
log in to your mail as you normally would and you should see the email
from yourself with your code attached
|