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;