Another day, another question :) I would like to forward commands like you can with ssh and zlogin. In other words, I want to do the equivalent of: zlogin $hostname "$command" virsh console doesn''t seem to allow that. Is there a right way to do this? I''m currently trying to automatically figure out the IP address and then use ssh to send commands to the domU, but it would be great if I could just send commands more directly. Thanks as always for any help. -Dan -- This message posted from opensolaris.org
Daniel wrote:> Another day, another question :) > > I would like to forward commands like you can with ssh and zlogin. In> other words, I want to do the equivalent of:> > zlogin $hostname "$command" > > virsh console doesn''t seem to allow that. Is there a right way to do> this? I''m currently trying to automatically figure out the IP address > and then use ssh to send commands to the domU, but it would be great > if I could just send commands more directly. I assume you would have already logged into the console? There''s nothing which does that today, but it would be pretty trivial to write an app which does this... The console is just a pts. MRJ> Thanks as always for any help.
ah. ok that''s what I kind of thought would be the answer. ok. thanks again. -Dan -- This message posted from opensolaris.org
Hi Dan, Instead of starting from scratch I''d suggest using expect (or any module providing the same functionality in your favorite language, perl, python ... whatever, matter of your preferences) -Petr On 13/08/2009, Daniel <no-reply@opensolaris.org> wrote:> ah. ok that''s what I kind of thought would be the answer. ok. thanks again. > > -Dan > -- > This message posted from opensolaris.org > _______________________________________________ > xen-discuss mailing list > xen-discuss@opensolaris.org >