Gentoo Archives: gentoo-user

From: Andres Becerra Sandoval <andres.becerra@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] autoexpect?
Date: Fri, 25 Nov 2005 19:08:41
Message-Id: 221c6fc80511251100y42a7cffeod9cc6c8a9f17e641@mail.gmail.com
In Reply to: [gentoo-user] autoexpect? by Antoine
1 Hello,
2
3 If you create a private-public pair with ssh-keygen you can access to
4 the other machine without a password. Then your script would call ssh
5 and probably "sudo /sbin/poweroff" as a parameter to halt the remote
6 machine.
7
8
9 On 11/25/05, Antoine <melser.anton@×××××.com> wrote:
10 > Hi,
11 > I would like to write a script to log in to a network machine and run
12 > halt (for the missus, who doesn't really like logging in via ssh just to
13 > turn of the internet connection...), and saw that autoexpect looks like
14 > it would fit the bill. It doesn't seem to be in portage and it seems a
15 > lot more difficult with expect...
16 > Any ideas?
17 > Cheers
18 > Antoine
19 > --
20 > gentoo-user@g.o mailing list
21 >
22 >
23
24
25 --
26 Andres Becerra Sandoval
27
28 --
29 gentoo-user@g.o mailing list

Replies

Subject Author
Re: [gentoo-user] autoexpect? Walter Dnes <waltdnes@××××××××.org>