On Mon, 7 Jan 2002, 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. |Anybody has any ideas as to why that must be happening? |Any workarounds for that?
export only works for sub-shells... so once your script ends.. the parent shell can't see the variables. Instead in your parent shell .. run ... source netConf that should set the variables for you. Kingsly _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
