VirtualBox

Changeset 20466 in vbox for trunk/src/VBox/Installer


Ignore:
Timestamp:
Jun 10, 2009 3:26:57 PM (15 years ago)
Author:
vboxsync
Message:

Linux installer: fixed script to properly parse VBoxManage list runningvms again

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Installer/linux/vboxdrv.sh.in

    r19584 r20466  
    233233        if [ -d /tmp/.vbox-$i-ipc ]; then
    234234            export VBOX_IPC_SOCKETID="$i"
    235             VMS=`$VBOXMANAGE --nologo list runningvms | sed -e 's/^".*"//' 2>/dev/null`
     235            VMS=`$VBOXMANAGE --nologo list runningvms | sed -e 's/^".*.*"{\(.*\)}/\1/' 2>/dev/null`
    236236            if [ -n "$VMS" ]; then
    237237                if [ "$SHUTDOWN" = "poweroff" ]; then
     
    321321            if [ -d /tmp/.vbox-$i-ipc ]; then
    322322                export VBOX_IPC_SOCKETID="$i"
    323                 VMS=`$VBOXMANAGE --nologo list runningvms | sed -e 's/^".*"//' 2>/dev/null`
     323                VMS=`$VBOXMANAGE --nologo list runningvms | sed -e 's/^".*".*{\(.*\)}/\1/' 2>/dev/null`
    324324                if [ -n "$VMS" ]; then
    325325                    echo "The following VMs are currently running:"
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette