I do not know if AskUbuntu is the correct place to ask or Stack Overflow.
To execute a statement in Windows use :
C:\\Windows\\System32\\cmd.exe What is the equivalent in Ubuntu? I thought it was :
/bin/bash but that does not work for me. I tried
/bin/dash ( like shown here )but without result.
In Virtualbox client I want to be able to execute a statement. For this I use pyvbox which is a Python shell for the virtualbox API.
After installing execute in statement in Virtualbox Windows client is possible with the statement :
process, stdout, stderr = gs.execute('C:\\Windows\\System32\\cmd.exe', ['/C', 'tasklist'])
See this link
I want to something like this for VBox Ubuntu client with the statement :
process, stdout, stderr = gs.execute('/bin/bash',['echo hello world'])
which returns no output.
In VBox Ubuntu client statement :
echo hello world is executed well.
Which alternatives there might be to execute a statement in Ubuntu? Sorry if this is not the correct place to ask.