Linux – How to make a bash script wait and then continue running


I have an .sh script. I would like to wait 25 minutes and then continue running, NOT repeat.
It's something like this:

/bin/bash ~/path/

I want it to kill a process after waiting 25 minutes.

#Wait 25 minutes
killall process

Best Answer

Use the sleep command: sleep 25m

So it would look like

sleep 25m
killall process

Source and good resource: