|
I have a similar need.
My users run an interactive bourne shell script, and the decisions they make need to be logged, and those logs need to be emailed.
Currently, the users need to remember to run the "script" command in advance of running the interactive script, then they need to email the output by hand afterward.
I would like to automate this for them so they do not forget to log it, and automatically send the email afterward, which would be possible if my interactive script got to specify the name of the log file.
Any ideas?
|