Logo 
Search:

Unix / Linux / Ubuntu Forum

Ask Question   UnAnswered
Home » Forum » Unix / Linux / Ubuntu       RSS Feeds

sending email on local P2P network

  Date: Dec 04    Category: Unix / Linux / Ubuntu    Views: 471
  

I have a pc running xubuntu which is used as a file server
(music, photos etc) it has apache 2 and samba and ssh on. It runs auto
backups of one USB HDD to another overnight. I connect to it Locally
from a laptop and a Desktop (both with Ubuntu on). What I would like is
some way of getting messages from the bash scripts that run the backup
into say thunderbird as an email to confirm that the backup has worked.
I have used "sendEmail" via SMTP to my googlemail email address then
picked this up in the normal way but this seems to be a long way around
things when in fact the pc's are all connected to one another, is there
a simpler better way of doing things?

One problem with "sendEmail" is that it does not as standard provide SSL.

Share: 

 

3 Answers Found

 
Answer #1    Answered On: Dec 04    

How about a simple php script that just sends a mail to root when its done.

 
Answer #2    Answered On: Dec 04    

I have no knowledge of PHP, I can just
about get by with bash and a lot of help from online sources. Would
sending mail to root only appear on the pc that the backup script is run
on? in my case the server. I tend not to have to look at the command
prompt too often as most access is done via samba.

 
Answer #3    Answered On: Dec 04    

"SendEmail is a lightweight, completely command line based, SMTP email
agent. If you have the need to send email from the command line, this
tool is perfect. It was designed to be used in bash scripts, Perl
programs, and web sites, but it is also quite useful in many other
contexts. SendEmail is written in Perl and is unique in that it
requires NO SPECIAL MODULES. It has an intuitive and flexible set of
command-line options, making it very easy to learn and use."

Check it out:

caspian.dotconf.net/menu/Software/SendEmail/

 
Didn't find what you were looking for? Find more on sending email on local P2P network Or get search suggestion and latest updates.




Tagged: