#!/usr/local/bin/perl -w use strict; my $ifconfig = `/usr/etc/ifconfig ec0`; my ($ip_address) = $ifconfig =~ /inet\s+(\d{1,3}\.\d{1,3}\.\d{1,3}\.\d +{1,3})/; print "$ip_address\n";
In reply to Re: Back in the saddle...
by Mr. Muskrat
in thread Back in the saddle...
by gnubbs
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |