VirtualBox

Changeset 28243 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Apr 13, 2010 12:07:13 PM (15 years ago)
Author:
vboxsync
Message:

Guest Control: Update (callback + error handling, --verbose for VBoxManage).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r28209 r28243  
    9292    uint32_t uTimeoutMS = RT_INDEFINITE_WAIT;
    9393    bool waitForOutput = false;
     94    bool verbose = false;
    9495
    9596    /* Iterate through all possible commands (if available). */
     
    188189            }
    189190        }
     191        else if (!strcmp(a->argv[i], "--verbose"))
     192        {
     193            verbose = true;
     194        }
    190195        /** @todo Add fancy piping stuff here. */
    191196        else
     
    238243            ComPtr<IProgress> progress;
    239244            ULONG uPID = 0;
     245
     246            if (verbose) RTPrintf("Waiting for guest to start process ...\n");
    240247            CHECK_ERROR_BREAK(guest, ExecuteProcess(Bstr(Utf8Cmd), uFlags,
    241248                                                    ComSafeArrayAsInParam(args), ComSafeArrayAsInParam(env),
     
    243250                                                    Bstr(Utf8UserName), Bstr(Utf8Password), uTimeoutMS,
    244251                                                    &uPID, progress.asOutParam()));
     252            if (verbose) RTPrintf("Process \"%s\" (PID: %u) started.\n", Utf8Cmd.raw(), uPID);
    245253            if (waitForOutput)
    246254            {
    247 
     255                if (verbose) RTPrintf("Waiting for output ...\n");
     256                /** @todo */
    248257            }
    249258            /** @todo Show some progress here? */
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