Hello,

If you create a private-public pair with ssh-keygen you can access to
the other machine without a password. Then your script would call ssh
and probably "sudo /sbin/poweroff" as a parameter to halt the remote
machine.


On 11/25/05, Antoine <[EMAIL PROTECTED]> wrote:
> Hi,
> I would like to write a script to log in to a network machine and run
> halt (for the missus, who doesn't really like logging in via ssh just to
> turn of the internet connection...), and saw that autoexpect looks like
> it would fit the bill. It doesn't seem to be in portage and it seems a
> lot more difficult with expect...
> Any ideas?
> Cheers
> Antoine
> --
> gentoo-user@gentoo.org mailing list
>
>


--
Andres Becerra Sandoval

-- 
gentoo-user@gentoo.org mailing list

Reply via email to