On Jan 31, 2012, at 11:18 AM, Jason Grout wrote: > On 1/31/12 2:23 AM, Ivan Andrus wrote: >> On Jan 31, 2012, at 8:37 AM, Iftikhar Burhanuddin wrote: >>> Hi folks, >>> >>> When I execute a Sage script using the 'nohup' command [1], for instance >>> >>> nohup sage test.sage> out.txt& >>> >>> the process is listed in the 'top' command display as 'python'. How do >>> I give user-generated names to this 'python' process for the purpose >>> of identification? >> >> >> According to [1] it requires the procname library which can be found at [2]. >> Remember you'll need to install it in Sage's version of python, not the >> system one. So do everything with `sage -python` or `sage -sh`. >> >> -Ivan >> >> [1] >> http://stackoverflow.com/questions/2255444/changing-the-process-name-of-a-python-script >> [2] http://code.google.com/p/procname/ >> > > Cool! Do you happen to know if that prevents 'killall python' from working, > then?
I think so yes. I haven't tried this exactly (it's linux only), but changing argv[0] in a little C program makes it so that killall only works with the new name. -Ivan -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org