<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>something like this should work:</div><div><br></div><div><div>#!/bin/bash</div><div><br></div><div>vms=$(vboxmanage list runningvms | sed -E 's/^\"(.*)\".*/\1/g');</div><div><br></div><div>for i in $vms; do</div><div><br></div><div>        read x _enabled x _address x _port x _multiconn x < <(vboxmanage showvminfo $i | grep -i vrde:);</div><div><br></div><div>        enabled=${_enabled%,};</div><div>        address=${_address%,};</div><div>        port=${_port%,}</div><div>        multicon=${_multiconn%,};</div><div>        echo "$enabled $address $port $multicon";</div><div><br></div><div>done</div><div><br></div><div><br></div><div>cu</div><div><br></div><div><div>Am 20.08.2012 um 11:24 schrieb Aaron Lewis <<a href="mailto:the.warl0ck.1989@gmail.com">the.warl0ck.1989@gmail.com</a>>:</div><br class="Apple-interchange-newline"><blockquote type="cite">Hi,<div><br></div><div>I'm not sure how should this work, I want to list all names of running VMs (that started by VBoxHeadless), and its VRDE port number,</div><div><br></div><div>Then make a very simple client that utilize rdesktop to connect.</div>
<div><br></div><div>I can't just parse the .xml config for the machine, since some machine doesn't specify a port number in its config (that VBoxHeadless will find a random port number).</div><div><br></div><div>So I'm wondering, if any internal protocol could use here</div>
<div><br></div><div>Thanks !<br clear="all"><div><br></div>-- <br><div><div>Best Regards,</div><div>Aaron Lewis - PGP: 0xDFE6C29E ( <a href="http://keyserver.veridis.com/" target="_blank">http://keyserver.veridis.com</a> )</div>
<div>Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E</div></div><br>
</div>
_______________________________________________<br>vbox-dev mailing list<br><a href="mailto:vbox-dev@virtualbox.org">vbox-dev@virtualbox.org</a><br>https://www.virtualbox.org/mailman/listinfo/vbox-dev<br></blockquote></div><br></div></body></html>