in reply to why doesn't this infinite loop work?

Try this instead:

while (1) { print "do test\n"; sleep(10); }
-sauoq
"My two cents aren't worth a dime.";