File size: 213 Bytes
b4feb07 |
1 2 3 4 5 6 7 8 9 |
PIDS=$(ps aux | grep python | grep -v grep | awk '{print $2}')
for PID in $PIDS; do
# echo "Killing Python process with PID: $PID"
kill -9 $PID
done
echo "All Python processes have been terminated."
|