How to transfer parameters to script with guestcontrol?

Discussions about using Linux guests in VirtualBox.
Post Reply
ros88
Posts: 6
Joined: 22. Oct 2015, 14:26

How to transfer parameters to script with guestcontrol?

Post by ros88 »

Hello,
I am using virtual box to run ubuntu.
I need to execute script with some parameters .
If i run the script from terminal in ubuntu it will be like:
/home/user/Documents/test.sh a b

a and b there are parameters for script.

When i run the script from windows with vmanage.exe, it will be like :
C:\Program Files\Oracle\VirtualBox\VBoxManage.exe guestcontrol Virtual_Ubuntu start --exe /home/user/Documents/test.sh --username user --password password

The problem is that i dont know how to "transfer" the parameters when i am starting the script from vboxmanage.exe
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: How to transfer parameters to script with guestcontrol?

Post by mpack »

Cross posting is against the forum rules. I have deleted your previous post on this subject.
Post Reply