in reply to timer in perl

Seems to a clueless newbie that he wants to time out $cmd1, $cmd2 and $cmd3. If that's the case he might want to look at Time::Out.