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 1EgQRt-0004Xf-Uk for garchives@archives.gentoo.org; Sun, 27 Nov 2005 17:36:26 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id jARHZUi3030028; Sun, 27 Nov 2005 17:35:30 GMT Received: from nproxy.gmail.com (nproxy.gmail.com [64.233.182.195]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id jARHU5AU016895 for ; Sun, 27 Nov 2005 17:30:06 GMT Received: by nproxy.gmail.com with SMTP id h2so444647nfe for ; Sun, 27 Nov 2005 09:30:05 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=AN3Ow5ifuthmTyRh1LI0yyIY3uuN+OLwU09TyWzwrjrMWoWdPVaI3qdBhylZMvJiRMIpzqKt6xMXalAyS/WMViznyUcmxMH/rKBF9fLioZ2AOC7i82kxwyhIqCXlXFHYvYussRCsa0R0AmezmZUjZnavpeKdH253PZS2BXq1Xfs= Received: by 10.48.225.2 with SMTP id x2mr402991nfg; Sun, 27 Nov 2005 09:30:05 -0800 (PST) Received: from ?192.168.1.10? ( [80.119.96.64]) by mx.gmail.com with ESMTP id l32sm658813nfa.2005.11.27.09.30.03; Sun, 27 Nov 2005 09:30:04 -0800 (PST) Message-ID: <4389ED17.90501@gmail.com> Date: Sun, 27 Nov 2005 18:29:59 +0100 From: Antoine User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051022) X-Accept-Language: en-us, en 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 To: gentoo-user@lists.gentoo.org Subject: Solved - Re: [gentoo-user] autoexpect? References: <43875B9F.3060601@gmail.com> <221c6fc80511251100y42a7cffeod9cc6c8a9f17e641@mail.gmail.com> <20051127072924.GA25324@waltdnes.org> In-Reply-To: <20051127072924.GA25324@waltdnes.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Archives-Salt: 9d91005e-12ec-4885-ba00-452913bce179 X-Archives-Hash: 5043ccf89fa148089a98d3f4f6baca24 Walter Dnes wrote: > On Fri, Nov 25, 2005 at 08:00:09PM +0100, Andres Becerra Sandoval wrote > > >>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. Thanks for all your suggestions, as I basically wanted to create an icon on the desktop to turn off the firewall/server, I went with expect. I also discovered cygwin on my journeys so am very happy - I just have a single script for all systems. I didn't read the docs carefully enough, and didn't see that autoexpect is just a script, so downloading from the expect site + gentoo expect solved it for gentoo. Cheers Antoine -- gentoo-user@gentoo.org mailing list