Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-13-2015, 01:42 PM   #1
Registered: Jun 2013
Posts: 71

Rep: Reputation: Disabled
Watching / capturing an applications threads

There is a home grown application that initiates either a telnet or ssh session based on the number of threads set.

I want to watch the process happen from start to finish, that is from the moment the first thread starts until the last thread finishes.

I was thinking netstat, but it wont show the process in its entirety. As connections are established and terminated the status / output of the command would be different..not to mention Id have to keep hitting the command and the enter key.

As usual, I have cracked my Linux in a nutshell book and will be doing web searches to find a solution.
Old 03-13-2015, 07:32 PM   #2
Senior Member
Registered: Mar 2012
Distribution: Red Hat
Posts: 1,604

Rep: Reputation: 415Reputation: 415Reputation: 415Reputation: 415Reputation: 415
You can use strace to signal trace a process. It isn't very easy to read this information but you can redirect the output to a file or pipe it to less.

Try reading the man page and doing some straces with the -p option of a PID to see what it does. There are some crazy advanced strace options to follow child PIDs as well that are in the man page.
Old 03-13-2015, 07:37 PM   #3
Registered: Jun 2013
Posts: 71

Original Poster
Rep: Reputation: Disabled
Thanks I'll take a look at strace. To dump I think would do it. But the admits just got "security and changed password
Fighting with them. All they really need to do is configured sudoers as I'm sure most know.
Old 03-16-2015, 04:27 AM   #4
Registered: Jun 2013
Posts: 71

Original Poster
Rep: Reputation: Disabled
That should be tcpdump .. dang spell check


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
some threads are become unnoticed because of large number of continious threads deepak_cucek LQ Suggestions & Feedback 9 08-21-2009 12:21 AM
watching the kernel processes/ threads ..? linuxdoniv Linux - Newbie 0 03-02-2008 11:58 AM
Java threads listed using kill -3 does not contain all threads found using ps -auxww coneheed Programming 2 11-14-2005 09:57 AM
Capturing video with Cinelerra works, capturing video with Xawtv doesn't! seaelf Slackware 0 06-27-2004 06:18 PM
tv watching applications for KDE markus1982 Linux - Software 3 08-18-2003 05:04 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:21 AM.

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