Home/Support/Support Forum/how to kill a python script running in gateway?
Welcome to Digi Forum, where you can ask questions and receive answers from other members of the community.

how to kill a python script running in gateway?

0 votes
Dear
here,
http://www.digi.com/support/forum/8277/how-to-kill-a-python-script-running-in-gateway
in 2009, no simple way, to kill some python script on CPX4, but it's possible on X2, today. In 2015, I would like to know if it's possible now on CPX4 ?
CPX4 is more expensive than X2, and I found more easy way to create with X2...
Best regards.
asked Oct 18, 2015 in 3rd Party Python and API development in other Languages by Rolland New to the Community (10 points)

Please log in or register to answer this question.

1 Answer

0 votes
If you can ssh into the device you can find the pid of the running script:

ps aux | grep python - will list all python scripts, you can replace python with the name of your script.

Then use kill #### to stop the script.

Alternatively, restart the device and make sure that script doesn't run automatically.
answered Oct 23, 2015 by rigers New to the Community (7 points)
edited Oct 23, 2015 by rigers
...