[plug] shell script
Rob Dunne
robd at anville.wa.cmis.CSIRO.AU
Wed Jan 9 23:34:30 WST 2002
Hi list,
the following is from a script from the "Security Quick-Start
Howto". WAN_IP is not being set and the script fails
but what is wrong with it? I have tried all sorts of quotes `,",' as
well as no quote but nothing works
[root at lycra]# WAN_IFACE="ppp0"
[root at lycra]# echo $WAN_IFACE
ppp0
[root at lycra]# WAN_IP= `/sbin/ifconfig $WAN_IFACE |grep inet |cut -d : -f 2 |cut -d \ -f 1`
bash: 130.116.4.29: command not found
[root at lycra]# echo $WAN_IP
[root at lycra]#
bye
rob
--
Rob Dunne Fax: +61 8 9333 6121 Tel: +61 8 9333 6178
CSIRO Mathematical and Information Sciences
Leeuwin Centre for Earth Sensing Technologies
Private Bag 5, P.O., Wembley, Western Australia, 6913
http://matilda.vu.edu.au/~dunne Email: Robert.Dunne at cmis.csiro.au
Java has certainly revolutionized marketing and litigation.
More information about the plug
mailing list