When the name of a session is a substring a a name in machines.conf, the session should not start when invoking 'vboxtool autostart'
Inserting two simple spaces around $name in line 420 works for me.
Example for ps -ef output: root 24280 22172 16 Mar05 ? 2-20:26:33 /usr/lib/virtualbox/VBoxHeadless --comment WindowsXP-Pro --startvm 2c06d65e-4bbc-452f-ba77-0beb6bca064a
There is always whitespace around the VM name.
changing line 420 to: pid=$(ps -ef | grep " $name " | grep -v grep | awk '{ print $2 }') works for me.
Best regards,
-jsl
Addenum: at least it works for 'vboxtool showrun', which has the same symptoms as the 'autostart' command.
I'm sorry, but I'm mistaken.
You found this bug (witch was already reported): https://sourceforge.net/tracker/?func=detail&aid=2836110&group_id=239993&atid=1111629
In there, there is another solution (extra awk-command) in stead of the addition spaces (your solution). Maybe you can look at that solution also?
Yes, pre-grepping for 'virtualbox' also works here.
:)
Log in to post a comment.
Inserting two simple spaces around $name in line 420 works for me.
Example for ps -ef output:
root 24280 22172 16 Mar05 ? 2-20:26:33 /usr/lib/virtualbox/VBoxHeadless --comment WindowsXP-Pro --startvm 2c06d65e-4bbc-452f-ba77-0beb6bca064a
There is always whitespace around the VM name.
changing line 420 to:
pid=$(ps -ef | grep " $name " | grep -v grep | awk '{ print $2 }')
works for me.
Best regards,
-jsl
Addenum: at least it works for 'vboxtool showrun', which has the same symptoms as the 'autostart' command.
-jsl
I'm sorry, but I'm mistaken.
You found this bug (witch was already reported): https://sourceforge.net/tracker/?func=detail&aid=2836110&group_id=239993&atid=1111629
In there, there is another solution (extra awk-command) in stead of the addition spaces (your solution). Maybe you can look at that solution also?
Yes, pre-grepping for 'virtualbox' also works here.
:)
-jsl