The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 10-07-2008
cesarNZ cesarNZ is offline
Registered User
  
 

Join Date: Sep 2007
Posts: 70
which script is best for the job

hi all,
was wondering which scripting language would be best for the following task :

have got about 20 application servers which get assigned port numbers from a known range (2750 - 2770). when a server is assigned a port from the given range it gets written to the log file for that server e.g for server1.log this would be written out "port:2750".

i wanted a script which would search each servers log file, grep the port and count the number of connections established on that port (by using netstat).


many thanks in advance.