Columbia MM
MM> Top Level Mode
take
TAKE - execute MM commands from a file
Usage: TAKE [inputfile] [outputfile] [errorfile]
The TAKE command tells MM to execute commands from a file (inputfile),
as if they were typed at the terminal. The file therefore must consist
of one or more MM commands, each on a separate line.
If you specify only one filename, the results of the commands are shown on
the screen. If a second filename is given (for an output file), the
commands and results are written to that file and nothing appears on
screen. The special filename /dev/tty will make your screen be the output
file, so you see both the commands and results. The third filename (an
error file) is for any error messages; output to screen and file work the
same way as for the output file.
MM stops using the TAKEn file when one of three conditions occurs: end of
the TAKE file; an error occurs; or the command TAKE with no arguments
is found in the file. The last is the preferred way to end.
Example:
A TAKE file might contain commands to MOVE mail to other files:
move from fuat fuat.mail
move from melissa melissa.mail
echo Mail from Fuat and Melissa has been moved.
take
Call the above file "fm-mail". When used, the following would be visible:
MM>take fm-mail
3,10 #The output of the MOVE
6,15:16 #commands.
Mail from Fuat and Melissa has been moved. #This is the ECHO command.
MM>
MM TAKEs files automatically, if they exist, in two cases. A file named
.mmrc will be TAKEn when MM starts up. A file named .rc
will be TAKEn when you GET or EXAMINE , i.e. "oldmail.rc"
when you GET "oldmail".
For more help type "help" and one of these topics
echo other
echo |
other |
MM Home