causvid / kill_processes.sh
lyttt's picture
Add files using upload-large-folder tool
5f5f46e verified
raw
history blame
213 Bytes
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."