Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > General

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 24th June 2006, 19:20
mphayesuk mphayesuk is offline
Senior Member
 
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to mphayesuk
Default Send Mail Command Line

I have almost written my backup script but what I want to do is email the log file my script creates.

So what I need is an example of how to email from the command line (shell script)

Thanks
Reply With Quote
Sponsored Links
  #2  
Old 24th June 2006, 20:29
vlsimpson vlsimpson is offline
Junior Member
 
Join Date: Jun 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

The old Berkeley mail prog:
cat logfile | mail -s 'backup log' emailaddress

for nail (if you have it)
nail -s 'backup log' -a logfile emailaddress
__________________
SlackHappy:GNU:Linux:Slackware
Reply With Quote
  #3  
Old 24th June 2006, 22:02
mphayesuk mphayesuk is offline
Senior Member
 
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to mphayesuk
Default

Well its using postfix, suse10 and everything is setup as the guides by falko, I will try the two methods you have put on in the morning.

Thanks
Reply With Quote
  #4  
Old 25th June 2006, 14:59
vlsimpson vlsimpson is offline
Junior Member
 
Join Date: Jun 2006
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I forgot mutt. You can use it similarly to my previous example.
__________________
SlackHappy:GNU:Linux:Slackware
Reply With Quote
  #5  
Old 25th June 2006, 15:08
mphayesuk mphayesuk is offline
Senior Member
 
Join Date: Sep 2005
Location: UK, East Midlands
Posts: 517
Thanks: 1
Thanked 3 Times in 3 Posts
Send a message via MSN to mphayesuk
 
Default

Works great thanks
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Not receiving any incoming mail. Jcorrea920 General 11 3rd April 2010 13:08
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs mholownych HOWTO-Related Questions 10 29th May 2006 03:39
send and receve mail on centos 4.3 tesquenure Installation/Configuration 11 25th April 2006 21:15
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 11:47
Mail server jas_esp Server Operation 1 7th December 2005 18:17


All times are GMT +2. The time now is 22:41.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.