S3Sync.net
February 02, 2014, 01:30:13 PM *
Welcome, Guest. Please login or register.

Login with username, password and session length
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Email-Notification with log attached  (Read 2725 times)
martin
Newbie
*
Posts: 1


View Profile
« on: December 14, 2007, 10:34:51 AM »

Hello

I want to get an email as soon a S3Sync replication is finished. Within the email the log must be attached.
Can someone support?

Thanks for your answer
Best regards
Martin
Logged
maximdim
Newbie
*
Posts: 1


View Profile
« Reply #1 on: December 14, 2007, 02:23:37 PM »

If you run your script from cron on Unix it will email any output produced by script back to the user.
Works fine for me.
Logged
ferrix
Sr. Member
****
Posts: 363


(I am greg13070 on AWS forum)


View Profile
« Reply #2 on: December 14, 2007, 07:01:00 PM »

From a cron:
I have my commands send output to a log file, and if the result code was non-zero I 'cat' the log file so it will be emailed to me via the cron system.  This way I don't have to care about logs when the procedure worked fine.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!