On 7 Jan 2002 at 17:15, Mayuresh Kathe wrote:

> 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.

Yes. You are executing the script as a child script which is default. So 
variables are exported in child's environment and they die as soon as child 
terminates..

So.. instead of 
$ ./netconf

do

$ . ./netconf

Get that '.' right..

HTH

 Shridhar

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

Reply via email to