which script is best for the job


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting which script is best for the job
# 1  
Old 10-07-2008
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.
# 2  
Old 10-08-2008
Shellscript with awk/sed if needed.

Connect to the servers via ssh, grep their logs for the ports and then grep -c for the number of lines with those portnumbers.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Need Help with a Shell Script for a Job

Hi Guys, I need your help with setting up a shell script for the following job. Please help. Encrypted file received at the SFTP server (.55 network - DMZ) from ABC company Encrypted file is passed into the internal network (.52 or .53) in one of the system and comes to Folder 'A' A script... (8 Replies)
Discussion started by: sam0912
8 Replies

2. Shell Programming and Scripting

Script to monitor job

Hi, I need help to write a script to check process of job running. If it does not run, then send email notify. ex: list of job: a,b,c,d,e,f thanks, (8 Replies)
Discussion started by: xitrum
8 Replies

3. Shell Programming and Scripting

Please help me to develop this script for autosys job

:wall:Hi All, I want to build script to force start the list of child jobs under a box. I prepared this below script, but this script need to some bug fix at run time. Please help me to to develop this script. Please let me know if any thing require for this script. Advance thank for all.. ... (3 Replies)
Discussion started by: pradipta_pks
3 Replies

4. Shell Programming and Scripting

AT job in a script

Hi, I'm trying to set an AT job in a script but I don't know how I could do that. I need to use the CTRL-D key to confirm the entry but how can I do this in a shell script? I tried to use the ^D character but it doesn't work. at now + 10 minute /tmp/bla.sh ^D (1 Reply)
Discussion started by: Milthiade
1 Replies

5. Shell Programming and Scripting

I need to do a work to my job, but i m new in script shell, someone can help with this..

I need to do a work to my job, but i m new in script shell, someone can help with this.. :confused: Description Bsafe The command creates a backup directory of each month at the command line (arguments of the script). The names of directories to copy will always be specified for the... (4 Replies)
Discussion started by: strshel
4 Replies

6. Shell Programming and Scripting

Script to Start a Job after finding the Old job completed

Hi Experts, I need a script advice to schedule 12 jobs ( SAS Codes execute back ground ). Algorithem: 1. Script checks first job. 2. Finds first job is done; invoke second job. 3. finds second job is done; invoke third job. .. Request you to please assist. (3 Replies)
Discussion started by: Jerald Nathan
3 Replies

7. UNIX for Advanced & Expert Users

Cron job for Perl script

Although there are many threads on this forum regarding cron, none have specifically answered my question. So hopefully someone can shed some light on what I'm doing wrong.. I have a perl script that I want to run in a cron job. Since I've read that cron doesn't have any environments set, I... (3 Replies)
Discussion started by: man
3 Replies

8. Programming

Job monitoring script

Hi, We are running a list of jobs (nearly 100 jobs). We have to monitor these jobs through their log files and based on job's exit status. If any one friend have this kind of scripts that will help me to create my own script. Please give me some codes. Your's loving friend. Love... (1 Reply)
Discussion started by: Love
1 Replies

9. Solaris

killing a unix job after the job process gets completed

Hi, Thanks in advance. i need to kill a unix background running job after that job process completes. i can kill a job by giving the following unix command kill -9 processid how to kill the job after the current process run gets completed ? Appreciate your valuable help. Thanks... (7 Replies)
Discussion started by: dtazv
7 Replies

10. Shell Programming and Scripting

killing unix job after the job process completes

Hi, Thanks in advance. i need to kill a unix background running job after that job process completes. i can kill a job by giving the following unix command kill -9 processid how to kill the job after the current process run gets completed ? Appreciate your valuable help. ... (1 Reply)
Discussion started by: dtazv
1 Replies
Login or Register to Ask a Question