1753499 Members
4710 Online
108794 Solutions
New Discussion юеВ

Re: check process

 
haeman
Frequent Advisor

check process

we have many unix-type server , they sometimes have files transfer between them by some method eg .ftp , ssh , rcp , I would like to ask if I want to know what file is transferring / receiving from remote server , for example , if I want to know what file is transferring ( eg. by the command of ssh ) , I heard the command "watch" may do that , I tried watch -n 10 ssh but not work , can advise what can i do it ? thx.
2 REPLIES 2
Shrikant Lavhate
Esteemed Contributor

Re: check process

Heaman,

If you want to log all ftp transfers and ftp sessions then editing /etc/ftpd/ftpaccess will help you.
For more details of FTP logging chk out: http://docs.hp.com/en/B2355-91058/ch02s05.html
Will it remain a personal, if I broadcast it here!
Ralph Grothe
Honored Contributor

Re: check process

I'm afraid but watch is a program not available on HP-UX.
It is however available on most Linux distro installations.
E.g. on one of our RHEL 5.1 hosts watch is part of the procps package

But watch most often is simply a sleek replacement for the old while loop idiom,
like

$ while :;do UNIX95= ps -C ssh -f;sleep 3;clear;done

Madness, thy name is system administration