in reply to Executing a shell script with progress indicator

Things you may want to know:
How can I start the twirling baton in Perl and then suspend it when I need to execute a system call to run the shell script in Perl?
If I understand your question correctly, which I'm totally unsure about, you may want to read up on $SIG{ALRM}.