Hi Adrian,

> the problem is I need to get the IP
> address of my dsl connection, but i can't seem to find
> a way to parse the output from ifconfig.

 No perl but shell:
IP_DEV=`/sbin/ifconfig <device> | grep inet | cut -d : -f 2 | cut -d " " -f 1`
 Or you could source it from /etc/dhcpc/dhcpcd-<device>.info if you are using 
dhcpcd. Don't know about pump.

                                        Bye,

                                        Leonard.



_______________________________________________
Redhat-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to