LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-19-2004, 01:06 PM   #1
LinuxGeek
Member
 
Registered: Jun 2002
Posts: 302

Rep: Reputation: 31
How to Do the Following? Running Script at Boot-Time + Sending Mail


I just got a dsl connection and want to access my pc remotely. Since I have a dynamic IP and the power can cut at any time, I'm trying to do the following:
automatically run an iptables script at boot time
send myself an email to my yahoo account with the new ip
How would I go about doing this? Thanks for your time.

PS. I'm using Debian SID.
 
Old 07-20-2004, 12:06 AM   #2
osvaldomarques
Member
 
Registered: Jul 2004
Location: Rio de Janeiro - Brazil
Distribution: Conectiva 10 - Conectiva 8 - Slackware 9 - starting with LFS
Posts: 519

Rep: Reputation: 34
You don't need this, man. All you have is get a free account at dyndns.org or other provider and register a dynamic dns name. Then install one of their utilities (I recommend ez-ipupdate) to update the address of your machine whenever it connects to the internet. Adsl is a connection which uses the ppp protocol. When ppp starts up it starts a script named "/etc/ppp/ip-up". In this script you can call your script to setup the firewall as well as your dns update.
Then, whenever you want to call your machine, you will use your dynamic dns name.
 
  


Reply



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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Shell script sending mail mfrick Linux - General 5 09-01-2005 07:46 PM
Newbie question - running a script at boot time Napalm Llama Red Hat 8 04-19-2005 03:11 PM
Sending mail without running Sendmail geomonap Linux - Software 5 12-22-2004 06:34 AM
Sending mail without running Sendmail geomonap Linux - General 1 12-20-2004 12:43 PM
Time difference when sending out mail. chuck77 Linux - General 2 05-30-2002 02:37 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:45 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
Open Source Consulting | Domain Registration