shell script question

Richard K. Miller richardkmiller at
Wed Oct 12 18:33:10 MDT 2005

I'm close to finishing a shell script to automatically enable the DMZ  
on my Linksys router no matter what IP address my computer has.

This returns the last octet of my local IP address, which happens to  
be a "5":
ifconfig | grep netmask | grep -v | awk {'print $2'} | sed  

This connects to the web interface of my Linksys router to turn on  
the DMZ: (notice the "5")
curl -u admin:password -d  
" -s

How do I connect the two commands?


More information about the PLUG mailing list