[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-users] Re: execute command
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. _______________________________________________ Xen-users mailing list Xen-users@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-users
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |