vzctle exec 'command' extend path [message #34370] |
Thu, 25 December 2008 11:47  |
michaelvv
Messages: 7 Registered: October 2008
|
Junior Member |
|
|
Hi OpenVz.
I have made a script for installing openvz vps , from the HOST OS.
but when i am compiling a bash script on the VPS from the HOST OS
using the vzctl exec command it can not find a certain file because it isn't located in its PATH.
vzctl exec 113 'which mysql_config'
which: no mysql_config in (/bin:/sbin:/usr/bin:/usr/sbin:.)
is it possible to add the directory where in this case 'mysql_config' is located , so i still can run my install
script from my HOST OS with an exec 'command'...
It works fine when i'm logged into the 113 VPS...
Thanks
/Michael
|
|
|