Python Forum
changing arguments as seen by ps
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
changing arguments as seen by ps
#1
in POSIX systems i can code in C to change the arguments that would be seen by the ps command. the typical reason for this is to identify what a each process, of many that are forked by a parent process, is doing. in Python, i want to do the same in each child i create with the multiprocessing module. in my current project i can launch 2 to 18 child worker processes, each accessing a different AWS region. i'd like to put that specific region name on that process' command line, as seen in ps. how can i do that in Python?
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
changing arguments as seen by ps - by Skaperen - Jan-16-2020, 09:35 PM
RE: changing arguments as seen by ps - by Skaperen - Jan-17-2020, 01:17 AM
RE: changing arguments as seen by ps - by DeaD_EyE - Jan-17-2020, 11:13 AM
RE: changing arguments as seen by ps - by Skaperen - Jan-18-2020, 12:24 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  changing the process command line arguments in python Skaperen 3 3,065 Aug-19-2019, 02:40 PM
Last Post: wavic
  Functions (Arguments Passing,Changing a mutable ,Assignment to Arguments Names) Adelton 2 3,922 Mar-02-2017, 10:23 PM
Last Post: zivoni

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020