I wrote a python script but accidentally put an infinite while loop in my script.
How do I kill the process? I’ve tried ctrl+c but with no success.
Are there any other option to try?
I’m on Mac Os X 10.7.2 with python 2.7
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
ps ato get the PID of your process.kill -9 <pid>to send it the unblockable SIGKILL signal.Note that I only have a Linux box in front of me to test, so the OS X commands may be slightly different.