Export shell variable
Posted on 2015-02-10
In my script i use export variable . So i can use the variable in another script which was sourced from main script.
But in command line, if i use $variable i see an empty value returned.
Please help on this. My aim is if some problem happened the script will be started in middle so if they start script 2 it should aware of the variable which was set in main script.