I run my scripts with timeout function
timeout 86400 ./start.sh
How can I terminate script before timeout counted down? Ctr+C does not work in this case Closing terminal still leaves process on background
This is my full script:
python3 startmeVtest.py 5 2 10
timeout 86400 ./start.sh
sleep 4
python3 startmeVtest.py 10 4 20
timeout 86400 ./start.sh
sleep 4
python3 startmeVtest.py 20 4 40
timeout 86400 ./start.sh
sleep 4
python3 startmeVtest.py 30 8 50
timeout 86400 ./start.sh
sleep 4
python3 startmeVtest.py 50 9 70
./start.sh
exit 0
I would like to exit from my bash script before it finish without using ps -A all the time.