For remotely executing a command, you can use the vbox guestproperty API. 
Inside the vm, check out "VBoxControl guestproperty" command.
 
Basically, the vm waiting for a property that contains a path for execution, 
and your host set this property. The guest vm launches the program when the 
guest property arrives. 
 
For file copy/paste, u can try to use a temp folder that's mapped to vm using 
shared folders. then operate the file.
 
We have implemented both of these functions internally, feel free if u need 
more info.


--- On Mon, 8/10/09, Lucian Adrian Grijincu <[email protected]> wrote:


From: Lucian Adrian Grijincu <[email protected]>
Subject: [vbox-dev] sending a file / executing a command on a vbox virtual 
machine
To: [email protected]
Date: Monday, August 10, 2009, 7:19 AM


Hi,

I'd like to know whether there is support in VBoxXPCOMC or in other libs for:
* sending/receiving a file to/from a vm with vm additions installed,
* executing a command/running a program on a vm with vm additions installed.

I'm working on an open-source application that tests homework
submitted by students at my faculty. The current setup uses vmware
(the VIX API support the kind of operations I enumerated above) and
we're looking into switching to virtualbox.


-- 
.
..: Lucian

_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev
_______________________________________________
vbox-dev mailing list
[email protected]
http://vbox.innotek.de/mailman/listinfo/vbox-dev

Reply via email to