[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] Re: execute command


  • To: Charles Duffy <cduffy@xxxxxxxxxxx>
  • From: Anand <xen.mails@xxxxxxxxx>
  • Date: Fri, 6 Jan 2006 02:53:14 +0530
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Thu, 05 Jan 2006 21:28:49 +0000
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=kacVsMUDB91O9H7WXLGu0AoXPLIjEPh1l7UMlmIefyihD7X+Vaq5Ez32fw2bElfhVvwxZyZIsxCWRL0MEDd3q2XC3ik89ym/kSz19CmfB3arJeU7xdR5+eYUc7CpHUn7dxBSEVuJLx8lc7Lr/HurxxYQt+UpgzIzHi08gHSSSRs=
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

I can't use the network, so ssh/rsh won't work. Sorry for my ignorance, i didn't know about expect. I just looked at the docs and am trying to install it (it complains about tcl even though i have tcl installed :( )

If you some example to help me jumpstart, i will appreciate it.

On 1/6/06, Charles Duffy <cduffy@xxxxxxxxxxx > wrote:
Anand wrote:
> Any ideas on how to implement such a script ? I tried echo "command;
> exit" | xm console vm01 however it doesn't work.
Use expect, as I was suggesting. Even if piping into "xm console"'s
stdin worked as you're suggesting, exiting the shell that's logged in
within a console session isn't going to exit the console session itself,
so that's an obviously bogus approach. Why aren't you going the ssh/rsh
route?

See http://expect.nist.gov/ -- or, if you're more pythonically inclined,
http://pexpect.sourceforge.net/. Expect to do some programming.



--

regards,

Anand
_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.