Code: Select all
# Excerpt code starting with line 1118 in /Applications/VirtualBox.app/Contents/MacOS/vboxshell.py (VBox v5.0)
guestSession = guest.createSession(user, passwd, "", "vboxshell guest exec")
while guestSession.status != ctx['global'].constants.GuestSessionStatus_Started: time.sleep(0.1)
# shall contain program name as argv[0]
gargs = args
print "executing %s with args %s as %s" % (args[0], gargs, user)
flags = 0
if inputPipe is not None:
flags = 1 # set WaitForProcessStartOnly
print args[0]
process = guestSession.processCreate(args[0], gargs, env, [], tmo)
while process.status != ctx['global'].constants.ProcessStatus_Started: time.sleep(0.1)
Thanks.