I am doing the following :
timeout 180 bash myscript.txt
myscript.txt is supposed to be fully executed in less than 180 seconds. IF NOT, I want emergencyscript.txt to be executed. Is it possible to do so ?
Like
timeout 180 [bash myscript.txt] [bash emergencyscript.txt]