[wplug] NOHUP question
Vanco, Donald
VANCOD at PIOS.com
Wed Apr 2 08:25:07 EST 2003
Mark Allen Adams, Jr. wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On Tuesday 01 April 2003 20:13, Randy Kosarik wrote:
>> Can you kill a process that has been initiated with NOHUP?
>>
>> ex:
>> nohup cp ./* ../newfolder &
>
> Well, I tested this using the 'sleep' command (I have precious disc
> space, and 'cp' could have been nefarious), but the following should
> work:
>
> $ nohup sleep 600 &
> nohup: appending output to `nohup.out'
>
> Okay, nohup has sleep running. Now figure out what process it's
> running as:
>
> $ ps -x | grep sleep
> 27256 pts/1 SN 0:00 sleep 600
> 27260 pts/1 S 0:00 grep sleep
>
> 27256. Kill it:
>
> $ kill -9 27256
>
> That should work. If you're in X, a graphical process manager like
> 'kpm' should work too. Just scan the list for the process and kill
> it.
I was under the impression that "-9" killed anything (and hopefully
it's children), regardless of it's "initiation" state - is that not the
case??
Don
More information about the wplug
mailing list