Menu

#2 Search for complete name in machines.conf

open
nobody
None
5
2008-11-16
2008-11-16
No

When the name of a session is a substring a a name in machines.conf, the session should not start when invoking 'vboxtool autostart'

Discussion

  • Jay Silence

    Jay Silence - 2010-03-22

    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

     
  • Jay Silence

    Jay Silence - 2010-03-22

    Addenum: at least it works for 'vboxtool showrun', which has the same symptoms as the 'autostart' command.

    -jsl

     
  • Mark Baaijens

    Mark Baaijens - 2010-03-22

    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?

     
  • Jay Silence

    Jay Silence - 2010-03-22

    Yes, pre-grepping for 'virtualbox' also works here.

    :)

    -jsl

     

Log in to post a comment.