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

Dave Angel d at davea.name
Thu Mar 15 12:04:06 EDT 2012


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.

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.

-- 

DaveA




More information about the Python-list mailing list