rdfnr Posted February 24, 2018 Posted February 24, 2018 Hey guys, I'll cut to the chase. How do I kill all running cgi scripts in my instance? I'm rdfnr on Johnny. I am learning to make some python scripts (chat bots) but they keep running and I don't know how to kill the processes without a terminal. Thanks in advance. Things I wanted to say:incredible service, thanks to everyone involved. This is great for people like me, to learn and get experience.I'll at least build in a termination option into the scripts I'm trying to run in the future... I guessI did use the search function and scrolled through some pages before posting. Sorry if this has been answered before. Best regardsrdfnr Quote
Bailey Posted February 24, 2018 Posted February 24, 2018 Does this help? https://www.helionet.org/index/topic/29129-python-script-behavior/ Quote
rdfnr Posted February 24, 2018 Author Posted February 24, 2018 (edited) Does this help? https://www.helionet.org/index/topic/29129-python-script-behavior/ Helps heaps, thanks so far!BUT, I still have a process running which is not assigned to a python script anymore (I deleted it).The one that was associated to a python script I could terminate with the script in the link you sent, but the one that's been there even before that, I somehow can't terminate. Tried with os.kill and the according PID but it did nothing. Any hints regarding that, maybe? EDIT: It somehow just worked now. I could kill all relevant processes. Thanks @Bailey and by extension @Krydos! Edited February 24, 2018 by rdfnr Quote
Bailey Posted February 24, 2018 Posted February 24, 2018 The reason the deleted script was still running is because it was probably somehow still running in the servers RAM. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.