Locke
09-23-2001, 06:33 AM
K, got an odd question for you peoples. :D
I am on a cable connection, using dhcpcd to set my IP address. I want to catch when my IP address changes (it doesn't often, but when it does...) so i can excute a script that will upload the new IP to my web server. This way, I can find my computer no matter where I am.
Are there flags that linux throws when it detects an IP change, or would this be a job for cron?
If it were a job for cron, what is the env variable for the IP address?
Thanks in advance for any help!
I am on a cable connection, using dhcpcd to set my IP address. I want to catch when my IP address changes (it doesn't often, but when it does...) so i can excute a script that will upload the new IP to my web server. This way, I can find my computer no matter where I am.
Are there flags that linux throws when it detects an IP change, or would this be a job for cron?
If it were a job for cron, what is the env variable for the IP address?
Thanks in advance for any help!