Is it technically possible to give Python option of naming process of running script?

Grant Edwards invalid at invalid.invalid
Thu Mar 15 19:39:11 CET 2012

On 2012-03-15, Dave Angel <d at> wrote:
> On 03/15/2012 03:26 AM, xliiv wrote:
>>>>> Like the topic.. .
>>>>> I use Python a lot, both Windows and Linux, and it's little weird to have many python process without fast distinction which is what.
>> I did google, I've played with Exemaker (it works perfect, but not py3) and i've seen questions on Stackoverflow.
>> The thing I mean is a build feature of python to give such a name. Not 3rd part or etc. like Grant Edwards said. Is it possible?
> How about simply using cp to copy the python executable, run chmod +x on 
> it, and run that one?  Then ps would list it as the new name, not as python.

That's rather a waste of memory.  Better to use a link.  That way the
executable can still be shared by multiple programs and won't be
duplicated in memory.

> i tried it on /usr/bin/python2.7    but I see no reason the same 
> approach won't work on 3.x  Note, I copied it to a new name in the same 
> directory, which may be important.  or not.

Seems like an awfully obtuse way of doing things -- I don't really
want to have 15 different copies of Python (or even links), and it
requires root privleges every time you want to run a Python program
with the "correct" name.

Grant Edwards               grant.b.edwards        Yow! Can I have an IMPULSE
                                  at               ITEM instead?

More information about the Python-list mailing list