WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Re: execute command

To: Charles Duffy <cduffy@xxxxxxxxxxx>
Subject: Re: [Xen-users] Re: execute command
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=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <43BD8D4E.4080602@xxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <acb757c00601051247h299c7346ga05627894123b272@xxxxxxxxxxxxxx> <dpk19q$l0$1@xxxxxxxxxxxxx> <acb757c00601051302u62b09525y7c53018589976fbf@xxxxxxxxxxxxxx> <43BD8D4E.4080602@xxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
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