VirtualBox

Changes between Initial Version and Version 2 of Ticket #7769


Ignore:
Timestamp:
Feb 2, 2011 1:37:33 PM (14 years ago)
Author:
Frank Mehnert
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #7769 – Description

    initial v2  
    77
    88This from a larger script to control VM before backup:
     9{{{
     10su $DefaultUser -c "/usr/bin/VBoxManage  --nologo guestcontrol \
     11                    execute "$VM_Name" "C:\Windows\system32\shutdown.exe" \
     12                    --arguments "/t 5 /s /d p:2:3" --username "$WinAdminUser" \
     13                    --password "$WinAdminPassword" --wait-for stdout"
    914
    10          su $DefaultUser -c "/usr/bin/VBoxManage  --nologo guestcontrol \
    11                              execute "$VM_Name" "C:\Windows\system32\shutdown.exe" \
    12                              --arguments "/t 5 /s /d p:2:3" --username "$WinAdminUser" \
    13                              --password "$WinAdminPassword" --wait-for stdout"
    14 
    15          echo "su $DefaultUser -c "/usr/bin/VBoxManage  --nologo guestcontrol  \
    16                                      execute "$VM_Name" "C:\Windows\system32\shutdown.exe" \
    17                                      --arguments "/t 5 /s /d p:2:3" --username "$WinAdminUser" \
    18                                      --password $WinAdminPassword --wait-for stdout""
     15echo "su $DefaultUser -c "/usr/bin/VBoxManage  --nologo guestcontrol  \
     16                            execute "$VM_Name" "C:\Windows\system32\shutdown.exe" \
     17                            --arguments "/t 5 /s /d p:2:3" --username "$WinAdminUser" \
     18                            --password $WinAdminPassword --wait-for stdout""
     19}}}
    1920
    2021And here is the result:
    21 
     22{{{
    2223Oracle VM VirtualBox Command Line Management Interface Version 3.2.10
    2324(C) 2005-2010 Oracle Corporation
     
    3637
    3738Syntax error: No user name specified!
    38 su todd -c /usr/bin/VBoxManage --nologo guestcontrol execute VB-ABC C:\Windows\system32\shutdown.exe --arguments /t 5 /s /d p:2:3 --username admin --password nottellin --wait-for stdout
    39 
     39su todd -c /usr/bin/VBoxManage --nologo guestcontrol execute VB-ABC \
     40   C:\Windows\system32\shutdown.exe --arguments /t 5 /s /d p:2:3 \
     41   --username admin --password nottellin --wait-for stdout
     42}}}
    4043You will note that "Syntax error: No user name specified!" does not match up to "--username winadmin"
    4144

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