python processes names

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Sylwia

    python processes names

    Hi!

    How to make python programs show up by name is ps (e.g ps -e). By
    default if we have many different python processes running
    simultaneously, then we can only see python python python for three
    different python processes. I would much rather see
    first_python_pr ogram_name.py, second_python_p rogram_name.py and
    third_python_pr ogram_name.py listed by ps. Is that possible without
    downloading and installing any non-standard modules?

    Thank you in advance,

    Best wishes,

    Sylwia
  • Cameron Laird

    #2
    Re: python processes names

    In article <f6554b84.04040 50308.7980080@p osting.google.c om>,
    Sylwia <lubowiecka@go2 .pl> wrote:[color=blue]
    >Hi!
    >
    >How to make python programs show up by name is ps (e.g ps -e). By
    >default if we have many different python processes running
    >simultaneously , then we can only see python python python for three
    >different python processes. I would much rather see
    >first_python_p rogram_name.py, second_python_p rogram_name.py and
    >third_python_p rogram_name.py listed by ps. Is that possible without
    >downloading and installing any non-standard modules?[/color]

    Comment

    • djw

      #3
      Re: python processes names

      Sylwia wrote:[color=blue]
      > Hi!
      >
      > How to make python programs show up by name is ps (e.g ps -e). By
      > default if we have many different python processes running
      > simultaneously, then we can only see python python python for three
      > different python processes. I would much rather see
      > first_python_pr ogram_name.py, second_python_p rogram_name.py and
      > third_python_pr ogram_name.py listed by ps. Is that possible without
      > downloading and installing any non-standard modules?
      >
      > Thank you in advance,
      >
      > Best wishes,
      >
      > Sylwia[/color]

      You could use proctitle:



      -Don

      Comment

      • Cameron Laird

        #4
        Re: python processes names

        In article <ezdcc.188803$_ w.1870414@attbi _s53>,
        djw <dwelch91@comca st.net> wrote:[color=blue]
        >Sylwia wrote:[color=green]
        >> Hi!
        >>
        >> How to make python programs show up by name is ps (e.g ps -e). By
        >> default if we have many different python processes running
        >> simultaneously, then we can only see python python python for three
        >> different python processes. I would much rather see
        >> first_python_pr ogram_name.py, second_python_p rogram_name.py and
        >> third_python_pr ogram_name.py listed by ps. Is that possible without
        >> downloading and installing any non-standard modules?
        >>
        >> Thank you in advance,
        >>
        >> Best wishes,
        >>
        >> Sylwia[/color]
        >
        >You could use proctitle:
        >
        >https://ftp.psychosis.com:4302/python/
        >
        >-Don[/color]

        Two points worth mentioning about proctitle:
        1. "Proctitle is a Python2.X module to manipulate
        the raw 'argv[]' contents of a python process."
        2. It's pure-Python.
        --

        Cameron Laird <claird@phaseit .net>
        Business: http://www.Phaseit.net

        Comment

        Working...