switter/stop_processes.sh
2024-02-08 09:07:13 -05:00

10 lines
193 B
Bash
Executable File

#!/bin/bash
# Read the PIDs from the file and terminate the processes
while read pid; do
kill $pid
done < /tmp/my_processes.pid
# Optionally, remove the PID file
rm /tmp/my_processes.pid