Changeset 21245 in vbox
- Timestamp:
- Jul 6, 2009 10:10:55 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxShell/vboxshell.py
r21204 r21245 203 203 204 204 def split_no_quotes(s): 205 #return s.split()206 205 return shlex.split(s) 207 206 … … 338 337 'stats': lambda: guestStats(ctx, mach), 339 338 'guest': lambda: guestExec(ctx, mach, console, args), 340 'monitorGuest': lambda: monitorGuest(ctx, mach, console, args) 339 'monitorGuest': lambda: monitorGuest(ctx, mach, console, args), 340 'save' : lambda: console.saveState().waitForCompletion(-1) 341 341 } 342 342 try: … … 489 489 return 0 490 490 491 def saveCmd(ctx, args): 492 mach = argsToMach(ctx,args) 493 if mach == None: 494 return 0 495 cmdExistingVm(ctx, mach, 'save', '') 496 return 0 497 491 498 def statsCmd(ctx, args): 492 499 mach = argsToMach(ctx,args) … … 530 537 return 1 531 538 532 def aliasesCmd(ctx, args): 539 def aliasCmd(ctx, args): 540 if (len(args) == 3): 541 aliases[args[1]] = args[2] 542 return 0 543 533 544 for (k,v) in aliases.items(): 534 545 print "'%s' is an alias for '%s'" %(k,v) … … 552 563 553 564 return 0 554 555 565 556 566 def monitorGuestCmd(ctx, args): … … 667 677 'l':'list', 668 678 'h':'help', 669 'a':'alias es',679 'a':'alias', 670 680 'q':'quit', 'exit':'quit', 671 681 'v':'verbose'} … … 677 687 'pause':['Pause virtual machine', pauseCmd, 0], 678 688 'resume':['Resume virtual machine', resumeCmd, 0], 689 'save':['Save execution state of virtual machine', saveCmd, 0], 679 690 'stats':['Stats for virtual machine', statsCmd, 0], 680 691 'powerdown':['Power down virtual machine', powerdownCmd, 0], … … 682 693 'list':['Shows known virtual machines', listCmd, 0], 683 694 'info':['Shows info on machine', infoCmd, 0], 684 'alias es':['Shows aliases', aliasesCmd, 0],695 'alias':['Control aliases', aliasCmd, 0], 685 696 'verbose':['Toggle verbosity', verboseCmd, 0], 686 697 'setvar':['Set VMs variable: setvar Fedora BIOSSettings.ACPIEnabled True', setvarCmd, 0], 687 'eval':['Evaluate arbitrary Python construction: eval for m in getMachines(ctx): print m.name,"has",m.memorySize,"M"', evalCmd, 0],698 'eval':['Evaluate arbitrary Python construction: eval \'for m in getMachines(ctx): print m.name,"has",m.memorySize,"M"\'', evalCmd, 0], 688 699 'quit':['Exits', quitCmd, 0], 689 700 'host':['Show host information', hostCmd, 0], 690 'guest':['Execute command for guest: guest Win32 console.mouse.putMouseEvent(20, 20, 0, 0)', guestCmd, 0],701 'guest':['Execute command for guest: guest Win32 \'console.mouse.putMouseEvent(20, 20, 0, 0)\'', guestCmd, 0], 691 702 'monitorGuest':['Monitor what happens with the guest for some time: monitorGuest Win32 10', monitorGuestCmd, 0], 692 703 'monitorVbox':['Monitor what happens with Virtual Box for some time: monitorVbox 10', monitorVboxCmd, 0],
Note:
See TracChangeset
for help on using the changeset viewer.