Why would these rules cause errors only sometimes?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



INET_IP=`ifconfig eth0 |grep "inet addr"|awk -F : '{ print $2 }'|cut -d \  -f
1`;

"That lines casues this error:"
 
cut: the delimeter must be a single character 
Try `cut --help' for more information.

#################################################################################

> This line will grab your current IP off the ppp0 link --
> 
>   INET_IP=`ifconfig ppp0|grep P-t-P|awk -F : '{ print $2 }'|cut -d \  
> -f 1`;
> 
> this line will grab your current IP off any ethx link
> 
>    INET_IP=`ifconfig eth[x]|grep "inet addr"|awk -F : '{ print $2 
> }'|cut -d \  -f 1`;
> 
> change the above to suit your needs ...
> 
> 
> 	Alistair
> 
> 
> 
> On 2002.10.24 03:44 Tasha Smith wrote:
> > 
> > ---OK...but the only problem is i have a DYNAMIC ip adress. Soo it
> > changes and
> > soo if i put an Ip adress i have right now in my script where eth0 is
> > it will
> > change and then it will block me from the net? How can i get it to
> > update my ip
> > adress in script when it changes!
> > 
> > 
> > __________________________________________________
> > Do you Yahoo!?
> > Y! Web Hosting - Let the expert host your web site
> > http://webhosting.yahoo.com/
> > 
> > 
> 


__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/



[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux