Execute your shell script in the following way:

$ . export_script.sh

thats a period, followed by a space and then the name of the script
In this way , the commands are executed in the current shell, and
u can then access u're variables...

--
arc_of_descent

Mayuresh Kathe wrote:
> Hi all,
>
> I created a small script containing the following:
> -- start netConf --
> #!/bin/bash
> export TYPE=M
> export IPADDRESS=192.168.0.13
> export NETMASK=255.255.255.0
> export GATEWAY=192.168.0.1
> export DNS=192.168.0.2
> -- end netConf --
>
> On executing it, the variables are not loaded up in memory.
> Anybody has any ideas as to why that must be happening?
> Any workarounds for that?
>
> Awaiting your replies
>
> ~Mayuresh

_______________________________________________
linux-india-help mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/linux-india-help

Reply via email to