How to call the arp linux shell command from within a perl program
Hi Guys,
I am trying to write a perl function that add or delete and ARP cache entry. I wrote my own code as down, but unfortunately it doesn't work as I expected. I want to call arp function from within my function so I can add different entries every time I call my function. so is there any different solution for my problem? If I use the "system(arp -i eth1 -s $NODE_IP $NODE_MAC)" instead of Code:
Bassam |
Found it
Ok Guys, I found the solution. The code should be like this:
Code:
#!/usr/bin/perl Regards Bassam |
All times are GMT -5. The time now is 01:39 AM. |