|
|
|
|
|
|
|
|
|
|
xen-users
Re: [Xen-users] Re: execute command
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
|
|
|
|
|