LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-23-2006, 02:50 AM   #1
dragunu
Member
 
Registered: Apr 2006
Distribution: Fedora Core 3
Posts: 47

Rep: Reputation: 15
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
 
Old 05-23-2006, 03:55 AM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 05-23-2006, 07:14 AM   #3
dragunu
Member
 
Registered: Apr 2006
Distribution: Fedora Core 3
Posts: 47

Original Poster
Rep: Reputation: 15
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
 
Old 05-23-2006, 02:10 PM   #4
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
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
 
Old 05-23-2006, 05:02 PM   #5
dragunu
Member
 
Registered: Apr 2006
Distribution: Fedora Core 3
Posts: 47

Original Poster
Rep: Reputation: 15
yes sure. but still, for knowledge's sake, can i attach a file and use cron via mutt?

thanks again tinkster
 
Old 05-23-2006, 05:08 PM   #6
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD
Posts: 2,117

Rep: Reputation: 330Reputation: 330Reputation: 330Reputation: 330
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.
 
Old 05-24-2006, 02:25 AM   #7
dragunu
Member
 
Registered: Apr 2006
Distribution: Fedora Core 3
Posts: 47

Original Poster
Rep: Reputation: 15
i c. thanks a lot guys. much appreciated.

cheers
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
shell script using /etc/cron.hourly to execute cron.php file? rioguia Programming 3 06-11-2008 09:09 AM
upgrade trouble (exim4 + mutt + cron) naruto273 Debian 5 03-09-2006 01:10 PM
cron.allow and cron.deny in slackware? tl64 Slackware 5 10-13-2005 10:44 PM
[cron][mdk9.1]cron deamon seems to ignore some task... yannrichet Linux - Newbie 5 06-26-2003 10:57 AM
dual entries in cron log for cron.daily cpharvey Linux - General 3 02-27-2003 03:30 PM


All times are GMT -5. The time now is 08:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration