I have a badly coded infinite looping program that I want to run on the command line - but not forever. I want to use ulimit so if it loops forever, it gets cut off.
$> bash -c "ulimit -t 1; java myinfloopprogram"
but it's like nothing is happening. What's going on, is my commandline command wrong? myinfloopprogram runs just fine.
I'm running a terminal and the version is Ubuntu 9.10 .