"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 -
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
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