How do I list all processes currently running with "nohup" ?

  • Follow


How can I list all currently running processes which were started originally with the "nohup"
prefix?

Wolfgang
0
Reply wmeister 5/18/2008 6:00:10 PM

Wolfgang Meister schreef:
> How can I list all currently running processes which were started originally with the "nohup"
> prefix?
> 
> Wolfgang

i think, after reading the 'info nohup' page,  you cannot do that...

because the process will be as normal as all the other processes running 
on your system.

-- 
Luuk
0
Reply luuk (814) 5/18/2008 6:54:21 PM


On 2008-05-18, Wolfgang Meister <wmeister@hotmail.com> wrote:
>
>
> How can I list all currently running processes which were started 
> originally with the "nohup" prefix?
>
> Wolfgang

I don't know if that's possible. It might be easier to list all 
processes owned by users who are not currently logged in.
0
Reply marcumbill (1012) 5/18/2008 7:09:17 PM

Luuk <Luuk@invalid.lan> writes:

> Wolfgang Meister schreef:
>> How can I list all currently running processes which were started originally with the "nohup"
>> prefix?
>> Wolfgang
>
> i think, after reading the 'info nohup' page,  you cannot do that...
>
> because the process will be as normal as all the other processes
> running on your system.

lsof | grep nohup.out

gets close.
0
Reply daneNO2 (701) 5/18/2008 7:59:30 PM

--Signature=_Mon__19_May_2008_12_17_34_+0200_4xjsltRseiWoueVL
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

Wolfgang Meister wrote:
> How can I list all currently running processes which were started
> originally with the "nohup" prefix?

This doesn't seem to be trivial. I think the easiest way is to get the
SigIgn mask for each running process and to check if HUP is ignored.

This could be done by some grep-magic, a la

  ps -aopid,cmd,status | grep clever-regexp

But I don't know how the mask is set, maybe someone else does.

--Signature=_Mon__19_May_2008_12_17_34_+0200_4xjsltRseiWoueVL
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIMVO/5jrP7hWxSO8RAqs/AKCvKqptCdirq4s70F4jOVsgugVmogCeOVCy
MfKFvn99RWjyqNfJqubRu8Y=
=Vk3u
-----END PGP SIGNATURE-----

--Signature=_Mon__19_May_2008_12_17_34_+0200_4xjsltRseiWoueVL--
0
Reply tn (18) 5/19/2008 10:17:34 AM

4 Replies
163 Views

(page loaded in 0.113 seconds)

Similiar Articles:













7/29/2012 9:24:56 AM


Reply: