Hi,
something like this should work:
#!/bin/bash
vms=$(vboxmanage list runningvms | sed -E 's/^\"(.*)\".*/\1/g');
for i in $vms; do
read x _enabled x _address x _port x _multiconn x < <(vboxmanage
showvminfo $i | grep -i vrde:);
enabled=${_enabled%,};
address=${_address%,};
port=${_port%,}
multicon=${_multiconn%,};
echo "$enabled $address $port $multicon";
done
cu
Am 20.08.2012 um 11:24 schrieb Aaron Lewis <[email protected]>:
> Hi,
>
> 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,
>
> Then make a very simple client that utilize rdesktop to connect.
>
> 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).
>
> So I'm wondering, if any internal protocol could use here
>
> Thanks !
>
> --
> Best Regards,
> Aaron Lewis - PGP: 0xDFE6C29E ( http://keyserver.veridis.com )
> Finger Print: 9482 448F C7C3 896C 1DFE 7DD3 2492 A7D0 DFE6 C29E
>
> _______________________________________________
> vbox-dev mailing list
> [email protected]
> https://www.virtualbox.org/mailman/listinfo/vbox-dev
_______________________________________________
vbox-dev mailing list
[email protected]
https://www.virtualbox.org/mailman/listinfo/vbox-dev