Re: ifconfig and too many pppd's

2002-02-21 Thread Johnathan Kupferer
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

ifconfig and too many pppd's

2002-02-19 Thread Ian McKenna
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