Hi,
if you run a shell like this:
and then you run it (i.e. # ./setvars.sh) the variables exist only inside the shell, but when the shell is finished, vars are out of scope and they are lost...
Is there any way to set environments var from a shell? and then, whit another shell you can unset them?
thanks in advance.
if you run a shell like this:
Code:
# setting vars
export IP-PC1=192.10.10.10
export IP-PC1=192.10.10.20
#end
and then you run it (i.e. # ./setvars.sh) the variables exist only inside the shell, but when the shell is finished, vars are out of scope and they are lost...
Is there any way to set environments var from a shell? and then, whit another shell you can unset them?
thanks in advance.