FREE Shell script Directory
Linux / Unix Shell Script Directory
Not logged in [ Log In ] [ Register ] [ Add Listing ]
Index :: Server Side Scripting ::

Collecting Network IP'S

  A sample BASH CGI script for collecting IPs of your colleagues in your network.

Prerequisites on your local machine:
1) apache/cgi configuration
2) a Mysql installation

Now create the mysql schema:

mysql> create table jks.ips (
-> rdate DATE,
-> ip VARCHAR(20) NOT NULL PRIMARY KEY,
-> owner VARCHAR(25)
-> );
Query OK, 0 rows affected (0.02 sec)

Suppose the IP of the box where you are running the cgi is "172.22.23.188" (your local ip). Now construct the urls for your colleagues this way:

http://172.22.23.188/cgi-bin/retrip.sh?owner=rajeshb
http://172.22.23.188/cgi-bin/retrip.sh?owner=ssarma
 
( This Software is Available for Direct Download )
 
Supported Operating System(s) CentOS, Debian, Mac OS X,
File Size 1 kb
Version x
License Type Open Source
Requirements Bash / KSH shell
Author Website http://gnutoolbox.com
 

 
Added 2011/10/11
Views [ 2108 ] Visits [ 4 ]
 
  Listed by : admin

View other listings by admin