View Full Version : [SOLVED] need help: force script exit on long process

March 2nd, 2012, 07:43 PM
Why doesn't this script exit early? I know I will still need to kill the ffmpeg process.

function check () {
sleep 5
killall ffmpeg
exit 1

check & ffmpeg... #(long conversion here)
exit 0

Nevermind the script does work, I have simplified the example too much.