From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.50) id 1Efiw4-0008Fg-Lh for garchives@archives.gentoo.org; Fri, 25 Nov 2005 19:08:41 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jAPJ6skY010311; Fri, 25 Nov 2005 19:06:54 GMT Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.203]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id jAPJ0A3p025026 for ; Fri, 25 Nov 2005 19:00:11 GMT Received: by wproxy.gmail.com with SMTP id i28so1377032wra for ; Fri, 25 Nov 2005 11:00:10 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=Srls4ZuO+wfZmMW19cvwPafH9FidrQkiKXFaJRCXpJFG0sqbsdGVpfXNnJujme3qiFZQYPtqHAKwLT3tuAQ3pOK/hm1QAu3hpjeG8jng14AeuIr9iFRXXqMPnpRXOII2RxB1wDqJj6LdY62LaBqqngSJJFm0ErxGKm2fFFs0Nbs= Received: by 10.54.114.17 with SMTP id m17mr6326570wrc; Fri, 25 Nov 2005 11:00:09 -0800 (PST) Received: by 10.54.123.7 with HTTP; Fri, 25 Nov 2005 11:00:09 -0800 (PST) Message-ID: <221c6fc80511251100y42a7cffeod9cc6c8a9f17e641@mail.gmail.com> Date: Fri, 25 Nov 2005 20:00:09 +0100 From: Andres Becerra Sandoval To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] autoexpect? In-Reply-To: <43875B9F.3060601@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Disposition: inline References: <43875B9F.3060601@gmail.com> Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by robin.gentoo.org id jAPJ0A3p025026 X-Archives-Salt: 09d3ca7c-30cc-413c-90c9-6e1224981c92 X-Archives-Hash: e2a781a84dfe232d7cfd58d09fffe488 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 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