Changeset 20928 in vbox for trunk/src/VBox/Main/webservice/samples/perl
- Timestamp:
- Jun 25, 2009 11:53:37 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/webservice/samples/perl/clienttest.pl
r20827 r20928 39 39 my $optMode; 40 40 my $vmname; 41 my $disk; 41 42 42 43 while (my $this = shift(@ARGV)) … … 66 67 { 67 68 die "[$cmd] Missing parameter: You must specify the name of the VM to start.\nStopped"; 69 } 70 } 71 elsif ($this eq 'openhd') 72 { 73 $optMode = $this; 74 75 if (!($disk = shift(@ARGV))) 76 { 77 die "[$cmd] Missing parameter: You must specify the name of the disk to open.\nStopped"; 68 78 } 69 79 } … … 148 158 vboxService->IWebsessionManager_logoff($vbox); 149 159 } 160 elsif ($optMode eq "openhd") 161 { 162 my $harddisk = vboxService->IVirtualBox_openHardDisk($vbox, $disk, 1, 0, "", 0, ""); 163 }
Note:
See TracChangeset
for help on using the changeset viewer.