Hi,
I have a problem executing a script. I would inizialize some variables with the command
and the variables are not declared.
after that I tried
and there aren't error, but when I tried to see the variables it let me "Undefined variable".
The file is like this:
and the output of
after that
and the output is:
I'm logged in with root and the permess of file vars is "7777".
What can I do to execute the script?
I have a problem executing a script. I would inizialize some variables with the command
export
and when I source this script with source ./vars
the result is:
Code:
export: Command not found.
after that I tried
/bin/sh ./vars
and there aren't error, but when I tried to see the variables it let me "Undefined variable".
The file is like this:
Code:
export EASY_RSA="/scratch"
echo "here"
echo $EASY_RSA
/bin/sh ./vars
is:
Code:
here
/scratch
echo $EASY_RSA
and the output is:
Code:
EASY_RSA: Undefined variable.
I'm logged in with root and the permess of file vars is "7777".
What can I do to execute the script?