in reply to progress bar for a system command

If you just want to biff the user and let them know you haven't died, perhaps fork off the sort pipeline into another process and then have the parent do a waitpid inside an alarm-ified loop (see perlipc for more examples) that prints a "." or what not. When the wait returns after the child sort is done the parent can move on.