alarm(180); # stop script after 3 minutes