I am working on some coding, and I have an idea that should work but I have no clue how to make it work. I am using Wolfram Mathematica on my Windows host machine to run some code, but I have to export a file to a Linux-based program that I run in an Ubuntu Virtualbox VM. As of now, when the file is exported, I have to go over and click it to make it run.
While it's not too much work, I'd like to have it automated so that Mathematica can call my other program and I don't have to click anything. I've done my best to look around online for help, but honestly it's mostly over my head (I'm a civil engineer, not really computer savvy).
Here's what I've got so far:
C:\Program Files\Oracle\VirtualBox\VBoxManage guestcontrol "Ubuntu" execute --username (myname) --password (mypassword) --verbose --wait-exit --wait-stdout --image "/home/(myname)/Desktop/oof2-2.1.11/oof2"
It tells me VERR_ACCESS_DENIED
and closes the guest session.
When I run my program in Ubuntu, all I have to do is type oof2
in the terminal window and it starts up, but how do I get it to do this via the command line? I've read through the guest control manual for VirtualBox and I didn't see anything that I can understand that directly applies. Any help is appreciated.
As a final note, I can run the examples given in the guest control manual and they work fine.
/home/(myname)/Desktop/oof2-2.1.11/oof2
?which oof2
oof2 --help
oroof2 -h
see if there is an option to pass it a script. But if you're trying to start a GUI application, you might have a hard time because VirtualBox is starting a new session for your user that wouldn't be associated with the current desktop.