Hello!!
I have a cgi which is a shell script: proj_web_apps.cgi
#!/usr/bin/ksh
. ../config/PROJ_ENV
# Limit the CPU time allowed for the process
ulimit -t $ULIMIT_CPU > /dev/null
$AWA_/bin/proj_web_apps
I would like to monitor who invoke this cgi and at what time. The user name and the ip address has to be print to a text file. The name of the cgi is proj_web_apps.cgi.
So the text file should have:
CGI_NAME IPADDRESS TIMESTAMP
information. I would cretainnly appreciate if you could give me a working script.
Thanks.
I have a cgi which is a shell script: proj_web_apps.cgi
#!/usr/bin/ksh
. ../config/PROJ_ENV
# Limit the CPU time allowed for the process
ulimit -t $ULIMIT_CPU > /dev/null
$AWA_/bin/proj_web_apps
I would like to monitor who invoke this cgi and at what time. The user name and the ip address has to be print to a text file. The name of the cgi is proj_web_apps.cgi.
So the text file should have:
CGI_NAME IPADDRESS TIMESTAMP
information. I would cretainnly appreciate if you could give me a working script.
Thanks.