bash - script not see environment variable running under sudo
my script contains string
Code:
echo $myvar Code:
$ export myvar=1 |
if you have "sudo" calling the script, but you define the VAR not in sudo environment then it can't follow it.
You will need some sudo configuration good luck |
All times are GMT -5. The time now is 04:28 PM. |