On Mon, 14 Aug 2000, Kenneth E. Lussier wrote:

> I use variables in my firewall script. For my IP address, I use the
> variable "IPADDR", and I define it at the beginning on the script as :
> IPADDR="`ifconfig eth0 | grep  inet| cut -d : -f 2 | cut -d \  -f
> 1`" . That way I don't have to go through the entire script and change it
> every time my IP address changes. I also run the firewall script out of
> cronttab every 1/2 hr to pick up any changes.

Even better... I use host names.  Mediaone assigns you a static host name,
even if your IP changes.  If your script uses your hostname, you don't
even need to use variables and don't need to figure out your IP address.


-- 
Derek Martin
System Administrator
Mission Critical Linux
[EMAIL PROTECTED] 


**********************************************************
To unsubscribe from this list, send mail to
[EMAIL PROTECTED] with the following text in the
*body* (*not* the subject line) of the letter:
unsubscribe gnhlug
**********************************************************

Reply via email to