LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 11-24-2010, 06:30 AM   #1
charu
Member
 
Registered: Nov 2010
Posts: 35

Rep: Reputation: 0
Tool to mail contents of new file when created


I am looking for a way to be mailed a new file when it is created in a certain directory.

I have found tools that will notify me when a file is created, such as iWatch with iNotify, but is there a way to actually be sent the new file when it is created.

It is only a short text log file, but I would like to read it in my inbox rather than have to login and open the file each time an event is logged.
 
Old 11-24-2010, 07:32 AM   #2
jlcasado
LQ Newbie
 
Registered: Oct 2010
Location: Madrid - Spain
Distribution: RHEL
Posts: 26

Rep: Reputation: Disabled
Hi,

iwatch allows you to run a command, so you can use a tiny script to send you the file by e-mail....if it is just a text file you can just run something like "cat yourfile | mail your_email_adddress"

Hope it helps.

best regards
jose
 
1 members found this post helpful.
Old 11-25-2010, 12:44 PM   #3
charu
Member
 
Registered: Nov 2010
Posts: 35

Original Poster
Rep: Reputation: 0
Thanks!!!!!I searched for ages yesterday and couldnt find how to do it.
 
  


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
Bash script for listing FTP usage as the file name of a file created in each share jojothedogboy Programming 1 12-05-2008 04:35 PM
Bash remove part of a file based on contents of another file bhepdogg Programming 4 01-31-2007 04:13 PM
To find Tool in QT designer which displays HTML Contents kiranbud Linux - Software 0 11-25-2005 12:35 AM
Retrieving variables from contents of files using awk or any other bash tool genderbender Programming 8 01-21-2005 04:27 AM
Sendmail /etc/mail/virtusertable not created katana Linux - General 4 03-01-2004 01:19 PM


All times are GMT -5. The time now is 04:54 AM.

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