Download exp_code/1_benchmark/CausVid/kill_processes.sh from SuperCS/useful_code: direct link, hf CLI and curl.
- Browser
- Download file 213 Bytes
-
https://huggingface.co/datasets/SuperCS/useful_code/resolve/aa8ee3caa0e01f55ccefdb2f4bbc59ede129fc4e/exp_code/1_benchmark/CausVid/kill_processes.sh
- Command line
-
hf download hf://datasets/SuperCS/useful_code@aa8ee3caa0e01f55ccefdb2f4bbc59ede129fc4e/exp_code/1_benchmark/CausVid/kill_processes.sh
-
curl -L -o kill_processes.sh https://huggingface.co/datasets/SuperCS/useful_code/resolve/aa8ee3caa0e01f55ccefdb2f4bbc59ede129fc4e/exp_code/1_benchmark/CausVid/kill_processes.sh
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." | |