[user@notebook ~] time perl -e 'alarm shift @ARGV; exec @ARGV' 1 sleep 2
Alarm clock
real 0m1.004s
user 0m0.004s
sys 0m0.000s
[user@notebook ~]
My question: how can I get rid of that "Alarm clock" message?? I just want to terminate a process after given time with a perl oneliner..