LinuxQuestions.org
Help answer threads with 0 replies.
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 09-09-2008, 05:54 AM   #1
ashwin_think
Member
 
Registered: Aug 2007
Posts: 35

Rep: Reputation: 15
Cool Root login forwarding on mail


Hi,

I've installed Fedora Core 3 with Webmin on my server. I want to get My server IP address for Interface eth1 on the mail which should forward automatically (through cron). On eth1 interface there is one PPP link running for my broadband connection and I want to know that IP address which changes automatically from my ISP. Can anyone know how to forward that IP address after 1 hour automatically on external mail ID with (if possible) root login details of the box.

Thanks.

Regards,
Ashwin.
 
Old 09-09-2008, 05:57 AM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Would a line like

Code:
ifconfig eth1 | grep "inet addr" | mail -s IP email@address
in cron every hour do what you want?
 
Old 09-11-2008, 07:12 AM   #3
ashwin_think
Member
 
Registered: Aug 2007
Posts: 35

Original Poster
Rep: Reputation: 15
Hey,

It's works. I'm able to see the IP of server on my mail.

Thank you dude..

Ashwin.
 
  


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
Procmail: forwarding mail to remote mail account Cadmium Linux - Software 2 01-14-2010 02:05 PM
Mail forwarding using Proc Mail swamprat Linux - Software 1 01-24-2008 05:25 PM
Mail Forwarding in postfix/maildrop/redhat (like yahoo mail forwarding) topcat Linux - Software 1 08-31-2007 01:10 PM
forwarding root mail to another local user kevinm2 Linux - Software 2 07-13-2005 11:55 PM
Forwarding ROOT mail to a user CRego3D Linux - General 5 02-05-2003 11:07 AM


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