CS0007:  Introduction to Computer Programming

University of Pittsburgh
  Spring 2004

Using Pine to email yourself

  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.
    1. start pine at the unix prompt:  $ pine
    2. (may not apply) enter E to skip the welcome screen
    3. (may not apply) enter N to decline the "move" file request
    4. at the main menu, enter C (compose) to start a new email
    5. enter your main email address in the To: field
    6. hold down Control, press J (attach command - Ctrl-J)
    7. now do Ctrl-T to view the files
    8. 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
    9. just hit enter to send without a comment
    10. back at the compose screen, now do Ctrl-X to send
    11. hit Y to confirm
    12. hit Q to quit
    13. hit Y to confirm
    14. now log in to your mail as you normally would and you should see the email from yourself with your code attached



Last updated:  1/12/04