3

I have several python Scripts running on a Raspi simultaneously. Depending on the Current time each might start running or stop running. How can I find out which scripts are running using Python?

Tim Pietzcker
  • 328,213
  • 58
  • 503
  • 561
user1530405
  • 447
  • 1
  • 8
  • 16
  • You can modify the scripts to save a log to somewhere... – Selcuk Mar 18 '16 at 05:35
  • you can [look here](https://www.raspberrypi.org/forums/viewtopic.php?f=27&t=13475) for a way to check it with the pi and [check out this](http://stackoverflow.com/questions/2703640/process-list-on-linux-via-python) for a way to check other programs with python. – Tadhg McDonald-Jensen Mar 18 '16 at 05:53

1 Answers1

10

You can use command below in linux to get which script is runing.

ps -aef | grep python

And you will see which python scrip is running.

Ezio
  • 1,116
  • 4
  • 13
  • 25