Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #21729

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

Path csiph.com!usenet.pasdenom.info!weretis.net!feeder4.news.weretis.net!newsreader4.netcologne.de!news.netcologne.de!feed.xsnews.nl!border-1.ams.xsnews.nl!newsfeed.xs4all.nl!newsfeed5.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <d@davea.name>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'python.': 0.04; 'memory.': 0.05; 'one?': 0.05; 'subject:Python': 0.05; 'distinction': 0.07; 'subject:process': 0.07; 'python': 0.08; '(it': 0.09; 'subject:script': 0.09; 'am,': 0.12; 'chmod': 0.16; 'executable,': 0.16; 'said.': 0.16; 'subject: \n ': 0.16; 'subject:possible': 0.16; 'cc:addr:python-list': 0.16; 'wrote:': 0.18; '>>>': 0.18; 'seems': 0.20; 'cc:no real name:2**0': 0.21; 'trying': 0.21; 'linux,': 0.21; 'header:In-Reply-To:1': 0.22; '(or': 0.22; 'windows': 0.26; 'cc:2**0': 0.26; 'tried': 0.27; 'not.': 0.28; 'second': 0.28; 'possible?': 0.29; 'weird': 0.29; 'cc:addr:python.org': 0.29; 'pm,': 0.29; '3.x': 0.30; 'subject:?': 0.31; 'shared': 0.31; 'note,': 0.32; "i've": 0.32; 'google,': 0.32; 'list': 0.32; "won't": 0.33; 'header:User-Agent:1': 0.33; 'rather': 0.34; 'copied': 0.34; 'executable': 0.34; 'root': 0.34; 'probably': 0.35; 'something': 0.35; 'things': 0.35; 'response': 0.36; 'run': 0.37; 'but': 0.37; 'using': 0.37; 'received:192': 0.38; 'doing': 0.38; 'first.': 0.39; 'link.': 0.39; 'point': 0.40; 'header:Reply-To:1': 0.70; 'reply-to:no real name:2**0': 0.72; '02:39': 0.84; 'perfect,': 0.84; 'what.': 0.84; 'edwards': 0.91; 'need,': 0.91; 'subject:\t': 0.93
Date Thu, 15 Mar 2012 22:00:43 -0400
From Dave Angel <d@davea.name>
User-Agent Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.27) Gecko/20120216 Thunderbird/3.1.19
MIME-Version 1.0
To Grant Edwards <invalid@invalid.invalid>
Subject Re: Is it technically possible to give Python option of naming process of running script?
References <19118128.4791.1331736187952.JavaMail.geo-discussion-forums@vbai14> <mailman.637.1331738031.3037.python-list@python.org> <jjqfdp$9ud$1@reader1.panix.com> <22071354.8904.1331796412001.JavaMail.geo-discussion-forums@vbkc1> <mailman.687.1331827483.3037.python-list@python.org> <jjtd0f$t8t$1@reader1.panix.com>
In-Reply-To <jjtd0f$t8t$1@reader1.panix.com>
Content-Type text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding 7bit
X-Provags-ID V02:K0:1kVsUuQRmHR5tqY3gl6TUo2a0vM4/5A7mR7+2yUOnvn Y9HqfkiIPQOYt2Tn5MPHNpFgjXR7n9sZdcuMUa5RdPsbkPfc64 uzYDKnwFD1sr/puf0OB5O+3QNx9L/VLAedcjAK5wWKUz4ccV/1 xvAWUfPKTF2JrN7CcuncoxVe54GddWoHbXm35FkoMXqaNFKvBW yelZecjwYq+z8g/ZLGfxN33Xp5To9HWNceMHk7kXc78gU2iWVI L7pXseSWLB5dRxxhX71Gtwy0V+moc0GMrYfz75wiSy0HaTK9Ut oAXkUMhvF7HgwSVE/AWkX8VAdNiSRvl2K6+D2BrDr8DTkC4Rw1 03yGztbMUISNMApgjK5M=
Cc python-list@python.org
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
Reply-To d@davea.name
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.712.1331863254.3037.python-list@python.org> (permalink)
Lines 36
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1331863254 news.xs4all.nl 6942 [2001:888:2000:d::a6]:49500
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:21729

Show key headers only | View raw


On 03/15/2012 02:39 PM, Grant Edwards wrote:
> On 2012-03-15, Dave Angel<d@davea.name>  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.
>

Good point about using a link.  I was trying to make something that 
would probably also work in Windows. As for the needing of root 
privileges, that's only for those programs you need to be able to 
identify with ps, and only one time for each.

Anyway, it's a response to a specific need, which I don't share, and it 
was my second suggestion, not first.



-- 

DaveA

Back to comp.lang.python | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Is it technically possible to give Python option of naming process of running script? xliiv <tymoteusz.jankowski@gmail.com> - 2012-03-14 07:43 -0700
  Re: Is it technically possible to give Python option of naming process of running script? Chris Angelico <rosuav@gmail.com> - 2012-03-15 02:13 +1100
    Re: Is it technically possible to give Python option of naming process of running script? Grant Edwards <invalid@invalid.invalid> - 2012-03-14 16:02 +0000
      Re: Is it technically possible to give Python option of naming process of running script? Terry Reedy <tjreedy@udel.edu> - 2012-03-14 13:13 -0400
        Re: Is it technically possible to give Python option of naming process of running script? Alain Ketterlin <alain@dpt-info.u-strasbg.fr> - 2012-03-14 18:34 +0100
      RE: Is it technically possible to give Python option of naming process of running script? "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-03-14 17:20 +0000
      RE: Is it technically possible to give Python option of naming process of running script? "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-03-14 17:27 +0000
      Re: Is it technically possible to give Python option of naming process of running script? Dave Angel <d@davea.name> - 2012-03-14 22:15 -0400
      Re: Is it technically possible to give Python option of naming process of running script? xliiv <tymoteusz.jankowski@gmail.com> - 2012-03-15 00:24 -0700
      Re: Is it technically possible to give Python option of naming process of running script? xliiv <tymoteusz.jankowski@gmail.com> - 2012-03-15 00:26 -0700
        Re: Is it technically possible to give Python option of naming process of running script? Dave Angel <d@davea.name> - 2012-03-15 12:04 -0400
          Re: Is it technically possible to give Python option of naming process of running script? Grant Edwards <invalid@invalid.invalid> - 2012-03-15 18:39 +0000
            Re: Is it technically possible to give Python option of naming process of running script? Dave Angel <d@davea.name> - 2012-03-15 22:00 -0400
            Re: Is it technically possible to give Python option of naming process of running script? Chris Angelico <rosuav@gmail.com> - 2012-03-16 14:14 +1100
              Re: Is it technically possible to give Python option of naming process of running script? xliiv <tymoteusz.jankowski@gmail.com> - 2012-03-16 01:19 -0700
              Re: Is it technically possible to give Python option of naming process of running script? xliiv <tymoteusz.jankowski@gmail.com> - 2012-03-16 01:19 -0700
              Re: Is it technically possible to give Python option of naming process of running script? Grant Edwards <invalid@invalid.invalid> - 2012-03-16 13:27 +0000
                RE: Is it technically possible to give Python option of naming process of running script? "Prasad, Ramit" <ramit.prasad@jpmorgan.com> - 2012-03-16 20:14 +0000
                Re: Is it technically possible to give Python option of naming process of running script? Grant Edwards <invalid@invalid.invalid> - 2012-03-16 20:54 +0000
  Re: Is it technically possible to give Python option of naming process of running script? Adam  Tauno Williams <awilliam@whitemice.org> - 2012-03-24 11:24 -0400

csiph-web