How to export variable from one script to other?
Can anybody give me syntax for that?
Thanks
How to export variable from one script to other?
Can anybody give me syntax for that?
Thanks
Hi Navi,
I think the case is that ur calling some more scripts in the present script.
If this is the scenario , run the inner scripts with . ( dot ) operator.
If inner script name is child.sh
In the parent script, run as . child.sh
Then all the variables in the inner script will be exported to parent script
Thanks
Penchal
Thanks Penchal.It is working