mmgetfilenm

Section: User Commands (1)
Updated:
Index Return to Main Contents
 

NAME

/usr/local/lib/mm/mmgetfilename - Ask the user to name a file in a given format
/usr/local/lib/mm/mmgetchar - read one char  

SYNOPSIS

/usr/local/lib/mm/mmgetfilename format-name file-name
x=`/usr/local/lib/mm/mmgetchar`
 

DESCRIPTION

The mmgetfilename program will ask the user for the name of a file in the specified format, and will copy that file to the file-name given as the second argument. If this doesn't sound very useful by itself, you're right. However, this turns out to be all you need in order to add some useful functionality to mailcap-oriented programs such as mailto(1). For example, the following line in a mailcap file allows mailto to help the user include PostScript in outgoing mail:
    application/postscript ; \
        lpr -Pipa %s ; \
        label="Include a Postscript File";\
        compose="getfilename Postscript %s"
The mmgetchar simply reads one character in and echo's it to stdout. This is implemented as a script so that it can be customized by the system administrators.  

SEE ALSO

 

BUGS

Unfortunately it seems impossible to have a portable version of for single char reads that can simply be embedded into a script. We're still trying though.  

COPYRIGHT

 

AUTHOR

Stuart Lynne
Adapted from getfilename(1) by Nathaniel S. Borenstein, Bellcore


 

Index

NAME
SYNOPSIS
DESCRIPTION
SEE ALSO
BUGS
COPYRIGHT
AUTHOR

This document was created by man2html, using the manual pages.
Time: 06:43:04 GMT, May 19, 2025