AndrewBeaton
12-12-2002, 11:06 AM
Hi All,
I have finally finished writing my perl script that updates a file on my webpage with my new IP address everytime it changes.
I run one on the client machine, that checks if the IP Address has changed upon Net connection and if so calls a cgi script on my webserver and passes it the relevent information.
This script then verifies the data and stored the details in a file. Calling the script normally will display the data.
What I am after tho is someway for a script on my webserver to "ping" the IP address it has and tell if it is online or not. Then it could display a message saying "online" / "offline" etc...
Can you use ping from an apache hosted site? if not do you have any recommendations on how I can do this?
With regards,
Andrew Beaton
linux@andrewbeaton.co.uk
I have finally finished writing my perl script that updates a file on my webpage with my new IP address everytime it changes.
I run one on the client machine, that checks if the IP Address has changed upon Net connection and if so calls a cgi script on my webserver and passes it the relevent information.
This script then verifies the data and stored the details in a file. Calling the script normally will display the data.
What I am after tho is someway for a script on my webserver to "ping" the IP address it has and tell if it is online or not. Then it could display a message saying "online" / "offline" etc...
Can you use ping from an apache hosted site? if not do you have any recommendations on how I can do this?
With regards,
Andrew Beaton
linux@andrewbeaton.co.uk