in reply to killing process...or limiting it's cpu time
But for the question you asked about, try forking before execing the C program (perhaps via nice). Then sleep, and then kill the child. See perlipc for good examples of the usage of fork.
--
perl -pe "s/\b;([st])/'\1/mg"
|
|---|