I have been trying to make this function run that is triggered from a
button on a Python rendered webpage. Clicking the button gets a
processID, sends a kill command for the process and then generates a
simple web page that displays the processID but the 'kill' command is
not carried out.
pid = os.popen('pidof myProcess').read().strip()
os.popen('kill -9 %s' %pid, 'w').close()
This works just fine in the interpreter.
Anyone have any ideas what I am overlooking?
Re: killing process
* Mark d. <email@example.com> [08-04-2004 16:26]:
> This works just fine in the interpreter.
> Anyone have any ideas what I am overlooking?
Perhaps the user running apache is not allowed to kill the process...
> Mark d.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
-----END PGP SIGNATURE-----
|All times are GMT. The time now is 01:31 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.