|
setting a global variable in script
Hi All,
I know to set global variable i can use export .. But take the situation like below ..
I want to set a variable in one script and access that in second script
i have done like this .. It is not working
one.sh
#!/usr/bin/ksh
echo $RISSHI
export RISSHI=1
two.sh
#!/usr/bin/ksh
echo $RISSHI
export RISSHI=2
the variable RISSHI is not changed to two when i run two.sh after one.sh
i tries to execute like . one.sh i got error...
Is there is way to share a variable between scripts?
Thanks,
Arun
|