LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   using mutt and cron (https://www.linuxquestions.org/questions/linux-newbie-8/using-mutt-and-cron-447584/)

dragunu 05-23-2006 01:50 AM

using mutt and cron
 
how is it possible to use mutt with a cronjob since there are sections in mutt which require direct input from the user therefore i dont have an idea how to apply that with a cronjob.

thanks

Tinkster 05-23-2006 02:55 AM

Quote:

Originally Posted by dragunu
how is it possible to use mutt with a cronjob since there are sections in mutt which require direct input from the user therefore i dont have an idea how to apply that with a cronjob.

thanks

What are you trying to achieve?

Code:

echo "This is my message-body"|mutt -s Testsubject user@domain.td

Cheers,
Tink

dragunu 05-23-2006 06:14 AM

thanks tink.

i am basically trying to send an attachment ( a txt file ) therefore i need a cronjob to send me this textfile every period of time.

thanks
drag

Tinkster 05-23-2006 01:10 PM

If it's plain-text you could just cat the file into mutt.
Or
echo ""| mutt -a <my_file> -s cronjob user@domain.td


Cheers,
Tink

dragunu 05-23-2006 04:02 PM

yes sure. but still, for knowledge's sake, can i attach a file and use cron via mutt?

thanks again tinkster

haertig 05-23-2006 04:08 PM

Quote:

Originally Posted by dragunu
yes sure. but still, for knowledge's sake, can i attach a file and use cron via mutt?

That's exactly what Tinkster's example is showing you. Specifically, the "-a <my_file>" part is what attaches the file.

dragunu 05-24-2006 01:25 AM

i c. thanks a lot guys. much appreciated.

cheers


All times are GMT -5. The time now is 12:28 AM.