strace usually does the job.

Thus spake Gordon Messmer, on Fri, Dec 21, 2001 at 07:48:50PM -0800:
> On Thu, 20 Dec 2001, howww wrote:
> 
> > how i can monitor a specific program i want to know the inputs and
> > outputs of this program ??
> 
> Well, you can look in /proc/<pid>/fd to see what files it has open.  For 
> normal files, the contents should be pretty simple and clear, they're just 
> symlinks.  For network sockets, you'll see the socket ID, which you can 
> find in the output of 'netstat -anp'
> 
> You can also follow the process with 'ltrace' or 'strace' or 'gdb' to see
> what it's doing with those files.
> 
> -- 
> If I had a dollar for every brain that you don't have,
>       I'd have one dollar. - Squidward to SpongeBob
> 
> 
> 
> _______________________________________________
> Redhat-list mailing list
> [EMAIL PROTECTED]
> https://listman.redhat.com/mailman/listinfo/redhat-list

-- 
Jose Celestino <[EMAIL PROTECTED]>
---------------------------------
We are Microsoft. You are not experiencing problems.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to