LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-04-2008, 07:53 PM   #1
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Rep: Reputation: 31
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.
 
Old 03-04-2008, 07:56 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,348

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
Try
top -c -u <usrname>
 
Old 03-04-2008, 09:08 PM   #3
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by chrism01 View Post
Try
top -c -u <usrname>
thx reply ,

when I use top -c -u ora_usr

it pops :

top: Unknown argument `u'
usage: top -hvbcisqS -d delay -p pid -n iterations


can advise what is wrong ? thx
 
Old 03-05-2008, 12:17 AM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,348

Rep: Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749Reputation: 2749
what distro and shell are you running?
 
Old 03-05-2008, 01:44 AM   #5
ust
Senior Member
 
Registered: Mar 2003
Location: fasdf
Distribution: Debian / Suse /RHEL
Posts: 1,130

Original Poster
Rep: Reputation: 31
Quote:
Originally Posted by chrism01 View Post
what distro and shell are you running?
RHEL 3 & shell version is 2.4.x .

thx
 
Old 03-05-2008, 02:46 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
If you know the upload directory (say it's "/var/upload") you could use lsof like 'lsof -w -n +D/var/upload'. Another alternative method could be to use a kernel facility like [i|d]notify. FAM (check out FAM) used dnotify in kernel 2.4 but it's generally considered nonperformant. Inotify is kernel 2.6's answer with which you can use say inotifywait ('inotifywait -m -r -e create /var/upload) and maybe a script that logs whatever it gets to syslog. Using inotify on kernel 2.4 is kind of invasive since it requires the inotify backport kernel patch (and I don't know if it's in the vanilla kernel source) but at least you know there's an alternative.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Process start time check ratul_11 Linux - General 1 02-21-2008 05:49 PM
Check is process is running? Zeno McDohl Programming 2 08-13-2007 07:48 PM
How to check the child process alive ? stny Programming 2 10-16-2006 05:12 PM
Check the process sunhui Linux - Software 5 03-01-2006 07:07 AM
Scripts to check if a process is running kt8993 Programming 3 07-09-2005 05:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:13 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration