mmitchel@digi.lonestar.org (Mitch Mitchell) (03/16/91)
I am trying to create a mush script to submit report via email. Has anyone written a script to create a banner etc. in a temporary file, edit the file, and the mail it to the recipients? I'm sure I could do this with a shell script to invoke mush after creating the file but I was curious if anyone had ideas on using mush's scripting capability alone to do this. I've started by looking at the "digestify" script to get some ideas, one thing I can figure out is how I might get the output of mush's "echo" command to write to a temporary file... Thanks, Mitch Mitchell -- ************************************************************************** * {letni | egsner | mic | supernet}!harlie!mitch Mitch Mitchell * * {uunet | texsun | sulaco}!digi!mmitchel Voice Mail (214) 519-3257 * * mmitchel@digi.lonestar.org FidoNet: 1:124/4115.224 *
schaefer@ogicse.ogi.edu (Barton E. Schaefer) (03/17/91)
In article <1991Mar15.225012.5764@digi.lonestar.org> mmitchel@digi.lonestar.org (Mitch Mitchell) writes: } I am trying to create a mush script to submit report via email. } Has anyone written a script to create a banner etc. in a temporary } file, edit the file, and the mail it to the recipients? How does this differ from creating a bunch of custom headers with the my_hdr command and using "set edit_hdrs"? Also look at the -h and -H options to the internal "mail" command ... } I've started by looking at the "digestify" script to get some ideas, } one thing I can figure out is how I might get the output of mush's } "echo" command to write to a temporary file... What exactly do you want to echo? You can always use "sh echo ..." to get the /bin/sh echo command, and then you can use ">" to redirect. If you want some of the features of "echo -h" or "echo -p", try using "eval -h sh echo ... > file" or the same thing with "eval -p". -- Bart Schaefer schaefer@zipcode.com Z-Code Software Corporation schaefer@cse.ogi.edu