« No weekly CCA login at this time?Resnet's dismal customer service, a customer experience »

Updated cron script for CCA login on Linux and other *nix machines

12/09/05

  23:12:00 by Joe, Categories: Resnet

I previously had provided a link to my CCA login Perl script here.
I had later added a link to a bash script to be runnable from cron. I have now updated this script, to allow the use of a tcp ping, and to provide logging.
The file can be run directly from crond, e.g., every couple of minutes, to check if the network connection is still available. The file checks if it can ping the UCI webserver, and if not, uses the login script to log in to the CCA system. To use the file, update the IP address, UCINetID and password.
Logging data is written to the file .resnet in the home directory.
Program usage:

$: cca -h
Usage: cca [type] [logging]
    type: Ping type (0: ICMP Echo through ping, 1: TCP Ack through nmap).
          Default: 0.
          Option 1 requires nmap to be installed and in the path.
          Get nmap from http://www.insecure.org/
    logging: 1 to log to .resnet in the home directory.

No feedback yet


Form is loading...

This blog tries to capture all the gripes about UCI Resident Networking (Resnet) and the switch to UCI-managed Cable TV in on-campus housing.
This site is not affiliated with UCI or UCI Housing.
May 2024
Mon Tue Wed Thu Fri Sat Sun
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
 << <   > >>

Search

  XML Feeds

powered by b2evolution free blog software