Re: Remote Execution of sudo Command Hangs.

2007-07-28 Thread Martin McCormick
"Christian Walther" writes: > Try using "pseudo tty allocation" with your ssh command, it's the "-t" > option. > So, use "ssh -t remote.system.domain sudo dhcpreset" as the command. That worked perfectly. > If this doesn't work directly, you can even try several "t"s. I had > best results with -

Re: Remote Execution of sudo Command Hangs.

2007-07-27 Thread Christian Walther
Hi Martin, On 27/07/07, Martin McCormick <[EMAIL PROTECTED]> wrote: > We have 3 FreeBSD systems. One is trying to use ssh and sudo to > run commands on two other systems. The remote command being > executed is: > > ssh remote.system.domain sudo dhcpreset > > dhcpreset is an expect script m

Remote Execution of sudo Command Hangs.

2007-07-27 Thread Martin McCormick
We have 3 FreeBSD systems. One is trying to use ssh and sudo to run commands on two other systems. The remote command being executed is: ssh remote.system.domain sudo dhcpreset dhcpreset is an expect script most of which is shown here: spawn $env(SHELL) expect -exact "\#" send -- "date\r