in reply to killing process...or limiting it's cpu time

Oh man, I wouldn't touch that with a forty-foot pole, major security issues.

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"

  • Comment on Re: killing process...or limiting it's cpu time