LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 02-20-2010, 06:13 AM   #1
gulshan_jain33
LQ Newbie
 
Registered: Sep 2008
Posts: 4

Rep: Reputation: 0
Thumbs up Auto generation of mail for ip address


I Have a system,on which i have dynamic internet,
I want to generate a mail to my specific mail id as exp-123@yahoo.com
like this,to give me the information about my dynamic ip address

i also want that if my internet reconnects then the mail must be generated to give new ip address information

if any one can solve my problem ....pls reply me on

Last edited by Tinkster; 02-25-2010 at 01:46 PM.
 
Old 02-20-2010, 06:21 AM   #2
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,528

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Welcome to LQ
You can create a script to get the IP and send the mail
Code:
lynx -dump http://www.formyip.com/ | awk '/IP is/{print $NF}'| mail -s "Your IP" exp-123@yahoo.com
Then you can create a cronjob to run the script every x minutes
Another option is to use dyndns
http://www.dyndns.com/
 
Old 02-21-2010, 06:30 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.9, Centos 7.3
Posts: 17,396

Rep: Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395Reputation: 2395
FYI, don't put your email in your post, a spambot will pick it up sooner or later.
 
Old 02-21-2010, 06:33 PM   #4
Sargalus
Member
 
Registered: Feb 2010
Location: Arizona
Distribution: Slackware 13.0
Posts: 106

Rep: Reputation: 16
spambots are so damn annoying
 
  


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
Auto generation of MySQL schema diagrams? koyi Linux - Software 3 07-24-2008 05:45 AM
Ip address auto changing? OneManOfBits Linux - Newbie 1 04-15-2007 11:32 PM
sendmail: how to send mail from my yahoo e-mail address harryhaller Slackware 3 11-13-2006 11:00 PM
Rejecting non local mail for specific e-mail address vrsic Linux - Server 4 10-24-2006 02:46 AM
Auto-generation of configure files in Kdevelop bigredgiant1 Programming 0 04-11-2004 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 01:48 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