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
/bin/bash ~/path/script.sh
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
Source and good resource: http://www.cyberciti.biz/faq/linux-unix-sleep-bash-scripting/