Hi all,
I'm having difficulties exporting environment variables from within
scripts. The problem doesn't seem to occur when exporting variables
from the command line.
To reiterate with an example,
# export VARIABLE='test'
# echo $VARIABLE
works. However,
# echo
On 1/2/06, Kris Kerwin [EMAIL PROTECTED] wrote:
Hi all,
I'm having difficulties exporting environment variables from within
scripts. The problem doesn't seem to occur when exporting variables
from the command line.
To reiterate with an example,
# export VARIABLE='test'
#
On Monday 02 January 2006 22:35, Kris Kerwin wrote:
works. However,
# echo export VARIABLE='test' test_script
# chmod 754 test_script
# ./test_script
# echo $VARIABLE
does not work. I've also tried the above while omitting the 'export'
command, to the same
Thanks to all for helping.
The source command did the trick, Alex.
# echo export VARIABLE='test' test_script
# chmod 754 test_script
# ./test_script
# echo $VARIABLE
Get's changed to:
# echo export VARIABLE='test' test_script
# chmod 754
On Mon, Jan 02, 2006 at 04:30:09PM -0600, Penguin Lover Kris Kerwin squawked:
Thanks to all for helping.
The source command did the trick, Alex.
?# echo export VARIABLE='test' test_script
# chmod 754 test_script
# ./test_script
# echo $VARIABLE
Get's
5 matches
Mail list logo