hello LQ!
i finally broke down and started learning some bash scripting, but now i'm stuck...
i have a script that sends an email, whenever it greps a log file and finds denied. I'm using mutt to send the email...now i would call it from the script like so
`mutt
blahblah@blahblah.com -s <subject> -CC <carbon copy> -i <dynamic file>`
.....that command works fine at the prompt but i have to sit there and hit return to "accept/verify" the information and then ' :wq " cause i'm using vi to edit with. i was wondering if it was possible to have the script throw those carriage returns after i call mutt <and also the " :wq ">.
if anyone knows how to do this...THANK YOU! or maybe even another mail agent that can be called from the command line but not as 'interactive'. I was thinking to use sendmail but i'm not sure how to pass the actual message to it via script... mutt uses ' -i '...anyway
thanks :)