Basically, you want to run ifconfig to get a list of which interfaces
are up and then look for ppp devices:
open IFCONFIG, "ifconfig |";
my @interfaces;
while(){
next unless /^(ppp\d+)/;
push @interfaces, $1;
}
close IFCONFIG;
This should give you what an array of what interfaces are u
Hi, I am new to PERL and have a relativly easy question.
I have a SUSE Linux machine that does some dial-up, gathers infirmation
from the servers I look after, however he dial up when shut down keeps a
pppd deamon up, sometime I see at least 20 ppp1ppp21 for example.
I've tried to write a PER