[wplug] NOHUP question

Mark Allen Adams, Jr. adamsma at washjeff.edu
Tue Apr 1 21:01:19 EST 2003


-----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.


- -- 
Mark Allen Adams, Jr. (adamsma at washjeff.edu)
The human mind ordinarily operates at only ten percent of its capacity
- -- the rest is overhead for the operating system.

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

iD8DBQE+ikR1nkcACrrIBtgRAga4AJ9Kk2mNboCsBI3MD/+CYXwNJBgg9wCfTOBh
tnxAF9SRtHbwjJ2LcgiSaVg=
=m7f+
-----END PGP SIGNATURE-----




More information about the wplug mailing list