Trying to build simple app to notify about changes in small string... Help?
Hi there!
I'll give a simple explanation about my problem. I'm using ADSL as connection, and I use an external modem/router to connect. Thus, the router takes my WAN IP, and my PC gets a LAN IP which isn't of much use. I can fetch the WAN IP manually by connecting to the router's internal HTTP server. Anyway, I've created a shell script that outputs the WAN IP into stdout in it's purest form (xxx.xxx.xxx.xxx). Why did I do this to begin with? Well, simply put, my ISP shifts my IP every now and then, and I'd like to find out when. Thus, I'd like to build a simple application that would use extract the WAN IP every now and then, and notify me and/or log whenever changes occur. I have close to no programming experience, so I'm basically asking if anyone here can help me out, or point me to some tutorial that I could find useful. Thanks in advance, |
Take a look at this script I worte for someone else:
http://www.linuxquestions.org/questi...threadid=80190 Just run it from a crob job. |
Ok it turns out that it wouldn't have worked (I assumed it did since I got no reply :(). This should do it though:
Code:
#!/bin/bash |
Thanks a lot for the tip! I brought my own small modifications to the script, added it in KCron, and it all seems to be going well!
Code:
#!/bin/sh |
Sorry that ain't really my department I tend to stick to console apps but I'm sure it is possible.
|
Allrighty, thanks a lot anyway, at least I got the backend right!
I'll keep on searching the web for help concerning these less important matters, the geek wannabe within me wants me to. ;-) |
All times are GMT -5. The time now is 03:29 PM. |