VirtualBox

Changeset 42904 in vbox for trunk/src


Ignore:
Timestamp:
Aug 21, 2012 12:48:56 PM (12 years ago)
Author:
vboxsync
Message:

Frontends/VBoxShell: minimal (and incomplete) conversion of gexec to new API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxShell/vboxshell.py

    r42380 r42904  
    10741074        return
    10751075    guest = console.guest
     1076    guestSession = guest.createSession(user, passwd, "", "vboxshell guest exec")
    10761077    # shall contain program name as argv[0]
    10771078    gargs = args
     
    10811082        flags = 1 # set WaitForProcessStartOnly
    10821083    print args[0]
    1083     (progress, pid) = guest.executeProcess(args[0], flags, gargs, env, user, passwd, tmo)
    1084     print "executed with pid %d" %(pid)
     1084    process = guestSession.processCreate(args[0], gargs, env, [], tmo)
     1085    print "executed with pid %d" %(process.PID)
    10851086    if pid != 0:
    10861087        try:
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