http://qs321.pair.com?node_id=603986


in reply to Auto-restarting script if it dies

Try setting your STDOUT buffer to autoflush. I didn't try your exact implementation, but that looks like the problem to me.

$| = 1;

Replies are listed 'Best First'.
Re^2: Auto-restarting script if it dies
by mojodaddy (Pilgrim) on Mar 09, 2007 at 20:30 UTC
    I wasn't sure whether you meant I should add that line to the Script, the Checker, or both -- so I tried all three! The line still didn't print, though. Which is fine, because in my actual implementation I don't need to print a line there. But it is curious, isn't it? Thanks for your reply, though.