although you may have to adjust the regex to match the wording of your particular arp.my ($mac) = `arp -a $ip_address` =~ /at\s+(\S+)\s+/;
Abigail
In reply to Re: How to get Mac Address from IP
by Abigail-II
in thread How to get Mac Address from IP
by bengmau
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |