[Users] vztcl runscript and keep the same env variables?

Benjamin Henrion bh at udev.org
Sun Sep 25 07:40:23 EDT 2011


Hi,

In a simple bash script named "test.sh", I used to call another shell
script "part1.sh" keeping the same Env variables like this:

$head -n 1 test.sh
. ./part1.sh

Now, I would like to do the same with vzctl runscript:

$head -n 1 test.sh
vzctl runscript 1110 part1.sh

How do I do that?

Best,

--
Benjamin Henrion <bhenrion at ffii.org>
FFII Brussels - +32-484-566109 - +32-2-4148403
"In July 2005, after several failed attempts to legalise software
patents in Europe, the patent establishment changed its strategy.
Instead of explicitly seeking to sanction the patentability of
software, they are now seeking to create a central European patent
court, which would establish and enforce patentability rules in their
favor, without any possibility of correction by competing courts or
democratically elected legislators."


More information about the Users mailing list