Logging of Port or Processes for AppServer

Ashley Tyler

New Member
Hello everybody,

I have been tasked by my Manager to update our Login System to facilitate the logging of the Port or Process ID that a user is currently using during the execution of an application.

This should allow us to kill off a process or AppServer should the program crash or fail in anyway.

I am reletively new to such things and need a quick turnaround. We are using a SCO Unix server with Windows Clients.

Any help in this area would be most appreciated.

Ashley Tyler
Software Developer
Roger Bullivant Limited
 
U

Unregistered

Guest
Hi,
Here is an shell example for a tcp port
survey. You can use "netstat" to check
the AppServer connections details.

tcpPort=3090
sleepInterval=5

while true; do
netstat -tl | grep $tcpPort >/dev/null
if [ $? != "0" ]; then
wall ALERT: AppServer is DOWN !!!
exit 0
fi
sleep $sleepInterval
done

rstanciu@progress.com
Rares Stanciulescu
Consultant Progress Sofware France
 
Top