in reply to Re^2: FR Reload Issues
in thread FR Reload Issues

Try replacing the command with something simpler like:

system("sudo ssh $addr echo Hello") && die("Failed to 'sudo ssh $addr echo Hello': $?");

If that works then you know the problem isn't with sudo or ssh. You need to look at $reloadcmd and figure out why it's failing. You haven't told us anything about this code so it's hard to know why it might exit(0).

-sam

Replies are listed 'Best First'.
Re^4: FR Reload Issues
by amt (Monk) on Nov 04, 2004 at 14:48 UTC
    samtregar, I did replace the complex command with a simpler command. I replaced it with touch and the touch command executed, I thought that I mentioned that in my first post, that is why I am so baffled at why it is exit(0). I have also tried redirecting the output of the execution to a file, and the remote server doesn't create that file, but the localhost does.

    I am logging into the remote server with a SSH key as root, when I'm executing that command, so I don't know why the command would fail.
    amt.

    perlcheat