in reply to Re^3: Interpreter eval counter out of bounds
in thread Interpreter eval counter out of bounds

use 'system' to restart itself and then exit.

Your script will be happy with a fresh start.

Except that when using system, the old process doesn't go away; it'll wait for the new one to finish.

Daemons restarting itself is a classical trick. But you got to use exec, not system. You want to replace yourself with the new instance, not create an additional one.

Replies are listed 'Best First'.
Re^5: Interpreter eval counter out of bounds
by flexvault (Monsignor) on Jan 28, 2011 at 19:30 UTC

    JavaFan,

    You are correct, but we do use 'system', however, the command that we issue has a " \&" at the end, so in our Unix environment, we're okay.

    I just checked the code on one of the scripts, and realized that I forgot how it was implemented. 'exec' would have been better.

    Thank you

    "Well done is better than well said." - Benjamin Franklin