Changeset 28243 in vbox for trunk/src/VBox/Frontends
- Timestamp:
- Apr 13, 2010 12:07:13 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp
r28209 r28243 92 92 uint32_t uTimeoutMS = RT_INDEFINITE_WAIT; 93 93 bool waitForOutput = false; 94 bool verbose = false; 94 95 95 96 /* Iterate through all possible commands (if available). */ … … 188 189 } 189 190 } 191 else if (!strcmp(a->argv[i], "--verbose")) 192 { 193 verbose = true; 194 } 190 195 /** @todo Add fancy piping stuff here. */ 191 196 else … … 238 243 ComPtr<IProgress> progress; 239 244 ULONG uPID = 0; 245 246 if (verbose) RTPrintf("Waiting for guest to start process ...\n"); 240 247 CHECK_ERROR_BREAK(guest, ExecuteProcess(Bstr(Utf8Cmd), uFlags, 241 248 ComSafeArrayAsInParam(args), ComSafeArrayAsInParam(env), … … 243 250 Bstr(Utf8UserName), Bstr(Utf8Password), uTimeoutMS, 244 251 &uPID, progress.asOutParam())); 252 if (verbose) RTPrintf("Process \"%s\" (PID: %u) started.\n", Utf8Cmd.raw(), uPID); 245 253 if (waitForOutput) 246 254 { 247 255 if (verbose) RTPrintf("Waiting for output ...\n"); 256 /** @todo */ 248 257 } 249 258 /** @todo Show some progress here? */
Note:
See TracChangeset
for help on using the changeset viewer.