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:

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

Online Assignmet Help said...

Excellent information on your blog, thank you for taking the time to share with us. Amazing insight you have on this, it's nice to find a website the details so much information about different artists.
visit here:- my assignment help

William Lucas said...

Great stuff you are sharing here thanks for sharing.
assignment expert

Singapore Assignment Help said...

It is good to read such a valuable information and thanks for sharing it. assignment help

My Assignment Help OZ said...

My Assignment Help OZ is a prominent assignment help provider across Australia, who deliver assignment helps to students, domestic and international, who are unable to write their assignment themselves. Acting as a stigma in the academic growth of the students, My Assignment Help OZ has been bringing quality preps written by quality experts in numerous topics and are the best nursing assignment help Australia.

Dennis Cameron said...

This article is very good. check for check it FM WhatsApp Xposed Installer QuickShortcutMaker