in reply to Re: Re: Strange problem with use
in thread Strange problem with use
i had the same problem in a program that forks. So i think bug is definitely in the Schedule::Cron modulesub getifip { my $ip = '0.0.0.0'; open(README,"/sbin/ifconfig $_[0] 2>&1 |"); while (<README>) { if ( /ad\w*:(\d+\.\d+\.\d+\.\d+)\s.*/ ) {$ip=$1} } close(README); #&slog("$_[0] has ip $ip","getifip"); return $ip; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: Strange problem with use
by beavis69 (Initiate) on Oct 18, 2003 at 10:08 UTC |