Skip to main content
4 events
when toggle format what by license comment
Apr 30, 2023 at 15:23 comment added Jeff Schaller @HaukeLaging I approached the question of "kill all python scripts except script called test.py" in sequence, by finding all of the python scripts (assuming that part works as intended) and then filtering out the one they want to keep. Is your concern around pgrep python not finding "all python scripts"?
Apr 29, 2023 at 14:40 comment added Hauke Laging It does not make sense to me that you once grep fpr python and once for the script name. How is that supposed to work? Of course, it is a general problem that scripts can be called directly and indirectly.
Jul 7, 2017 at 8:30 comment added pir For me, pgrep myscriptname.py doesn't capture any of the instances of the script. I'm on Ubuntu 14.04.
Sep 15, 2016 at 18:50 history answered Jeff Schaller CC BY-SA 3.0