Identify specific processes from different Machine


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Identify specific processes from different Machine
# 1  
Old 02-28-2007
Identify specific processes from different Machine

Hi,

i;m getting a hard time on how to have this kind of script.

1. ssh on another machine and check if a specific process is running and notify in there is a problem.

SOS!!!!!!!!!!!!!


Smilie
# 2  
Old 03-01-2007
you may use Expect to write such a script
# 3  
Old 03-01-2007
Let me know what you trying to achieve, but basically simulating the ssh sessions + ps - ef | grep <the-process> will work.
basic example with TCL/Expect :
Code:
#!/usr/bin/expect

set timeout -1
spawn ftp://user@server

expect password:

send "password\r"
expect sftp>

send "exit\r"
expect eof

Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Perl to identify specific runs in input and print only lines identified

In the perl one-liner below I am identifying the runs of 6a or 6A in each line starting with >. The code seems close but it prints each > line no matter if it has 6a or 6A in it. Only the line with the 6a or 6A needs to be printed. So using the input file, only the >hg19_refGene_NM_001918_3... (10 Replies)
Discussion started by: cmccabe
10 Replies

2. AIX

Identify All Processes memory and cpu usage.

Hi All, Anyone has script to monitor AIX total processes memory and cpu usage that contribute to the total memory and CPU utilize so far ? The purpose of this is to analyze process memory trend. Thanks. Best Regards, ckwan (2 Replies)
Discussion started by: ckwan
2 Replies

3. AIX

How to Identify long running unix processes

Hi All, Need an urgent help, I have a requirement to find long running unix processes.. I have tried the below commands, but not succeed. I need to arrange the unix processess in an order of elapsed time (high to low) that runs in a system. For Eg: Consider we have 3 processes, Pid 1 pid 2... (5 Replies)
Discussion started by: mohamedirfan
5 Replies

4. AIX

Script to identify high CPU usage processes

Hi Guys, I need to write a script capable of identifying when a high cpu utilitzation process. It sounds simple but we are on a AIX 5.3 environment with Virtual CPU's (VP's) and logical CPU's. Please any ideas or tips would be highly appreciated. Thanks. Harby. (6 Replies)
Discussion started by: arizah
6 Replies

5. Shell Programming and Scripting

identify the unix processes performing high disk i/o reads and writes

I would like to write shell/perl script which identifies the top unix processes that are performing high disk I/O's or/and writes If any one knows the solution please help me? -Swamy (0 Replies)
Discussion started by: avsswamy
0 Replies

6. Shell Programming and Scripting

identify specific pattern

hello I want to create a folder under all partitions that are : /hostname1 /hostname2..... how to exclude /hostname (i.e start directly with /hostname1) thank you (1 Reply)
Discussion started by: melanie_pfefer
1 Replies

7. UNIX for Advanced & Expert Users

How to know processes whice are using specific folder

Hi, Can any one help me. I want to know what are process using the particular folder. Ex: I want to know what are process curretly using "/home/user1" folder. I am using AIX. please give me command to check the same. Thanka (1 Reply)
Discussion started by: Selva_Kumar
1 Replies

8. Shell Programming and Scripting

How to identify User Machine name?

Hi Experts, We 4 to 5 people are using same UNIX(Solaris) login for our testing purpose. Also we are doing some modifications to existing scripts. Is it possible to know the each user machine (IP address or machine name) who are using the same login to modify the scripts. So that we can... (12 Replies)
Discussion started by: ganapati
12 Replies

9. UNIX for Advanced & Expert Users

Identify a remote machine as windows or unix

Hi, I have a IP address of the target machine.Is there is any way to find out whether it is a unix box or windows box without logging into it?. Regs Anand (5 Replies)
Discussion started by: u449064
5 Replies

10. UNIX for Advanced & Expert Users

preventing others to run processes on my machine

I am in a multi-user Linux environment at work. Other users easily run processes on my machine when my machine is idle, but when I try to use my machine, it is dead slow. The processes run by them always grab the top spot using 99% of my CPU time. Is there a way I can prevent others to run... (3 Replies)
Discussion started by: besharam
3 Replies
Login or Register to Ask a Question