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

Reply via email to