Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Auto-restarting script if it dies

by former33t (Scribe)
on Mar 09, 2007 at 14:05 UTC ( #603986=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://603986]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2021-01-26 18:29 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?