2006-02-10

Changing Python Process Titles

Davyd wanted a way of changing process titles under python.

I've always used proctitle, which can rewrite the sys.argv, aka, char**argv array. And was quite aggravated that I didn't know how to change the process command name, which is what killall uses to kill processes.

So after being shown how to do it in mono, I found the docs, wrote it in C, put it in proctitle's _proctitle.c and created a patch for 0.0.2.

Now I can stop using pkill -f and go back to using killall. :)
technorati:

4 comments:

Ken Kinder said...

The only problem here is that proctitle has a limit of 7 chars for the first argument (ie, for the program name)... That's prohibitively small...

assignment writing services in australia said...

It sure is not that easy to get these titles because you have to make good effort to be on the top. I have seen a lot that had been giving all they got for getting these titles.

Lipozene Reviews said...

I have already changed the process title which I was have been willing to do from a while. If you are having more encryption to use than share them on another blog.

Jamie Whitham said...

In this short paragraph you can see that different useful methods are shared with you. These clues and ideas for helpful for the students of computer and engineering, as it tells us assignment help australia about so many tricks and techniques about software.