Hi All,
Still trying to do a firewall. I have the following to try and capture the
ipaddress from ifconfig
EXTERNAL_INTERFACE="ppp0" #Internet connected interface
IPADDR=`/sbin/ifconfig $EXTERNAL_INTERFACE | grep "inet addr:" | \awk -F:
{'print '} | cut -d\ -f 1`
echo "EXTERNAL_INTERFACE: ${EXTERNAL_INTERFACE} on ${IPADDR}"
however the script output is
EXTERNAL_INTERFACE: ppp0 on
Now if I run
/sbin/ifconfig ppp0 | grep "inet addr:" | \awk -F: {'print '} | cut -d\ -f
1
from a prompt it gives the ipaddress - what am I doing wrong.
Thanks
Linda Hanigan
_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list