| « More weekend Cable TV outages | The weekly channel outage... » |
Apparently, Resnet recently has done some changes to their CCA configuration.
It used to be that CCA blocked all network access until logged in. The last version of my CCA login script used that by trying to ping or nmap the UCI webserver.
Since a week or so, CCA does not block all network access anymore. Ping now goes through, as does ssh, even when not logged in.
So I changed my script, to use wget to get the main UCI webpage, and determining if the result contains a redirect to the CCA login page.
The updated script is available here.
Program usage:
Usage: cca [logging]
logging: 1 to log to .resnet in the home directory.
Note: needs wget installed.
Get wget from http://www.gnu.org/software/wget/wget.html
The file can be run directly from crond, e.g., every couple of minutes, to check if the network connection is still available.
Trackback URL (right click and copy shortcut/link location)