Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-05-2006, 12:57 AM   #1
Registered: Aug 2004
Location: Arroyo Grande, Ca
Distribution: Ubuntu 6.06
Posts: 49

Rep: Reputation: 15
simple script needed

I have a server running ubuntu 5.1 (breezy badger) from my house and we have a dynamic ip. i have everything running great but its a pain in the butt when the ip changes. right now i have a php script on my internet server (that i pay for, hosted somewhere else with a domain), and the php script has a login, that when logged in correctly will refresh the page every hour or so updating the dynamic ip into a database. from there i can easily redirect to that ip using php.

the problem is, my server being a 450mhz p3 with 256 ram, i dont want to have the x windows server running and have firefox open the entire time because it takes up so much of the system's resources.

what i'm looking for is a script that i can run from a command line after i have stopped the window server that will login and periodically update my ip address in a mysql database on a server.

does anyone know where i can find a script like this, or could someone write one for me? i know it's kind of asking a lot but i dont think it would be too hard for someone that is quite good in whatever language this could be written in (perl, python, c)??

thanks, and sorry for the essay of a post
Old 01-05-2006, 01:28 AM   #2
LQ Newbie
Registered: Nov 2005
Location: Philadelphia
Posts: 8

Rep: Reputation: 0
If you're using dynamic DNS you might consider installing the package ddclient. There's a small bit near the middle of this page: that explains how to set the parameters. You can set it to run as a daemon and hopefully never worry about updating the DDNS server again.



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
Iptables (with masq) troubleshooting, very simple script attached script and logs. xinu Linux - Networking 13 11-01-2007 05:19 AM
simple backup script needed ferret_dude Programming 4 05-24-2004 09:45 AM
simple Samba help needed yurlittlepony Linux - Networking 7 01-03-2004 08:51 PM
SIMPLE database needed! rkhartley Linux - Newbie 4 10-30-2003 01:25 PM
Simple C Shell script is not so simple elconde Programming 2 09-17-2001 12:53 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:27 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration