On Wed, 1 Dec 1999, Nick Zentena wrote: nz> nz> Okay I'm trying to set my IP into my firewall script automatically. I nz> took the info posted here awhile ago by S.Toms. nz> nz> EXT_INT="eth0" # whichever you use nz> IPADDR="`ifconfig ${EXT_INT} | grep 'inet addr' | awk '{print $2}' | sed nz> -e 's/. nz> That second line should actually read like the following, but all on one line (the mailer will make it two lines) IPADDR="`ifconfig ${EXT_INT} | grep 'inet addr' | awk '{print $2}' | sed -e 's/.*://'`/32" nz> Which won't work for some reason. I've managed to get: nz> nz> ifconfig ppp0 | grep 'addr' | awk '{printf $2}' | sed -e s/addr:// nz> nz> to work from the command line but I'm banging my head against the wall nz> getting it to work from within a script. So anybody willing to point out nz> the right way to do this? nz> And if your putting it within a script, don't forget the #!/bin/sh in the first line of the file. nz> Thanks nz> Nick nz> -- S.Toms - tomas@primenet.com - New homepage coming soon SuSE Linux v6.2+ - Kernel 2.2.13 Down with categorical imperative! -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/