SCEN103 -- pine and xv Worksheet
Several of you have asked me about mailing pictures or other binary files
This turns out to be fairly straightforward using the Attachment feature.
- You should have received an e-mail message from me in the last day or so.
Run pine and look for a message with Subject:
CD Density? DON'T ERASE!
- You will find two attachments to the message, one is a 118 kilobyte image
of a Compact Disk and the other is a text file containing instructions for the
- After reading the message, hit 'v' to view the attachments.
Note that 'e' will exit the viewer or list of attachments to
return to the body of the message.
- Select the text file "Assignment" by scrolling down the list.
- Read the assignment here -- it is not repeated on any of the SCEN031
- Now select the image file "Photo of CD"
- If pine responds with:
[Don't know how to display attachment format Image/GIF]
a graphics viewer has not yet been configured.
- Return to the main menu of pine to configure the image viewer.
- Select 's' to setup and then 'c' to configure.
- Scroll to the end of the configuration menu to the entry
image-viewer = <No Value Set>
- Select 'a' (Add Value)
and enter 'xv' as the value to be added so that
the entry appears as:
image-viewer = xv
- Select 'e' to exit the configuration menu
and 'l' to reopen your INBOX.
- xv is the image viewer for the UD X-terminal environment.
- Return to the Attachments Viewer in pine and select once again
the image "Photo of CD"
- If the image is not successfully displayed on your X-terminal at this
point, please call the instructor for help!
- By clicking the right mouse button on the image, the xv menu
box will open.
- If you are interested in learning more about xv, you may print
out a 100-page manual with the following sequence of UNIX commands:
- cd /opt/lib/xv/docs
to go to the xv documents subdirectory.
- qpr -q smips xvdocs.ps
where smips is the Postscript printer service in Smith Hall.
(Substitute whatever printer you wish here.)
to return to your root directory
- Note that if you attempt to view a graphics file from a terminal that is
not an X-terminal, the following error message will result:
[VIEWER Result: xv: Can't open display]
- Attachments may be saved for later use:
- 'v' for View Attachments if not already in that index
- 's' for Save
- You will be prompted to select a name for the file. The name
will default to the value it had as an attachment.
- The file will be saved in your root directory.
- When composing an e-mail message in pine,
a file can be attached by:
- moving the cursor into the header area,
- hitting '^J' to Attach; i.e., <CTRL>-J
- and selecting the file to attach.
Completion of the exercise requires you to note the contents of the
graphics file attached to the recent e-mail message
and make a few estimates and calculations.
Hint: How would you count the number of bricks making up a wall without
counting the individual bricks? Hint 2: You have a tape measure!
Proposed point value of exercise:
- 1 point for attending discussion session and examining figure
attached to recent e-mail message.
- 1 point for completing assignment as outlined in the text attached
to the same e-mail message
-- and e-mailing message to
email@example.com by Friday 10/27, 5pm.
- 1 point BONUS:
Include solution as an attachment to the e-mail message above!
- 1 point BONUS:
Attach a graphics file -- you are on your own here!
Try to figure out how
to get a graphics file for this use...