home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1999 March B
/
SCO_CASTOR4RRT.iso
/
nwnet
/
root
/
usr
/
sbin
/
nwipadmin
/
nwipadmin~
Wrap
Text File
|
1998-08-19
|
1KB
|
33 lines
#!/bin/sh
#Read in all the Parameters
nwip_domain=`nwcm -v nwip_domain | cut -d= -f 2 | sed 's/\"//g'`
export nwip_domain
nwip_db_sync_interval=`nwcm -v nwip_db_sync_interval | cut -d= -f 2 | sed 's/\"//g'`
export nwip_db_sync_interval
sap_servers=`nwcm -v sap_servers | cut -d= -f 2 | sed 's/\"//g'`
export sap_servers
nwip_nsq_broadcast=`nwcm -v nwip_nsq_broadcast | cut -d= -f 2 | sed 's/\"//g'`
export nwip_nsq_broadcast
ipx_auto_discovery=`nwcm -v ipx_auto_discovery | cut -d= -f 2 | sed 's/\"//g'`
export ipx_auto_discovery
nwip_preferred_dss=`nwcm -v nwip_preferred_dss | cut -d= -f 2 | sed 's/\"//g'`
export nwip_preferred_dss
nwip_nearest_server=`nwcm -v nwip_nearest_server | cut -d= -f 2 | sed 's/\"//g'`
export nwip_nearest_server
#do the Menu Stuff
/usr/sbin/menu -f /etc/netware/nwip.menu -o /tmp/nm$$.out
if [ $? -ne 0 ]
then
exit 1
fi
#set all the parameters
sed 's/\"//g' < /tmp/nm$$.out > /tmp/qq$$.out
while read j
do
nwcm -s "$j"
done < /tmp/qq$$.out
rm -f /tmp/nm$$.out /tmp/qq$$.out