VirtualBox

Ignore:
Timestamp:
Apr 27, 2010 8:10:04 AM (15 years ago)
Author:
vboxsync
Message:

VBoxShell: print guest process output

File:
1 edited

Legend:

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

    r28798 r28799  
    817817    if pid != 0:
    818818        try:
    819             while not progress.completed:
    820                 data = None #guest.getProcessOutput(pid, 0, 1, 4096)
     819            while True:
     820                data = guest.getProcessOutput(pid, 0, 1000, 4096)
    821821                if data and len(data) > 0:
    822822                    sys.stdout.write(data)
     823                    continue
    823824                progress.waitForCompletion(100)
    824825                ctx['global'].waitForEvents(0)
     826                if progress.completed:
     827                    break
     828
    825829        except KeyboardInterrupt:
    826830            print "Interrupted."
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