If i have a bash process running on my machine that i am not 'attatched' to is there anyway to access it and see what it is doing short of just killing it?
Thanks.
-----------------------
N: Jon Hardcastle
E: Jon@eHardcastle.com
'..Be fearful when others are greedy, and be greedy when others are fearful.'
-----------------------
02-05-2009, 03:12 PM
Volker Armin Hemmann
accessing a bash
On Donnerstag 05 Februar 2009, Jon Hardcastle wrote:
> Hey guys.. random Linux question.
>
> If i have a bash process running on my machine that i am not 'attatched' to
> is there anyway to access it and see what it is doing short of just killing
> it?
>
open files: lsof
everything else: strace
02-05-2009, 03:15 PM
Andrey Falko
accessing a bash
On Thu, Feb 5, 2009 at 8:04 AM, Jon Hardcastle <jd_hardcastle@yahoo.com> wrote:
Hey guys.. random Linux question.
If i have a bash process running on my machine that i am not 'attatched' to is there anyway to access it and see what it is doing short of just killing it?
*
Thanks.
See if it has a parent process by running pstree. It could be that you ran something in console or that you su-ed at some other instance.
02-05-2009, 05:33 PM
Nikos Chantziaras
accessing a bash
Jon Hardcastle wrote:
Hey guys.. random Linux question.
If i have a bash process running on my machine that i am not 'attatched' to is there anyway to access it and see what it is doing short of just killing it?
Thanks.
Give us the output of "ps aux | grep bash" and we might be able to tell
what it does.
02-06-2009, 07:37 PM
Dan Wallis
accessing a bash
On 05/02/2009, Jon Hardcastle <jd_hardcastle@yahoo.com> wrote:
> Hey guys.. random Linux question.
>
> If i have a bash process running on my machine that i am not 'attatched' to
> is there anyway to access it and see what it is doing short of just killing
> it?
Take a look at app-misc/screen. Although you do need to remember to
start things inside a screen to begin with.