I need to get somehow a folder, where are placed my virtual machines (in bash script).
Currently i use the following code get this path in the command line:
Code:
# Retrieve parallels home, substr & trim
PARALLELS_PATH=`prlsrvctl info | grep 'VM home' | cut -d':' -f2 | xargs`
It works, but i don't like really to parse plain-text output. Is it the only way to do this, or perhaps you could advise better one?
Last edited: Jul 23, 2015