Path: utzoo!utgpu!cunews!bnrgate!bwdls61.bnr.ca!bwdls58!leibniz!walt From: walt@bcarh133.uucp (Walt Sullivan) Newsgroups: comp.lang.perl Subject: Re: Perl 3.0-18 open timeout? Message-ID: Date: 21 Nov 90 13:04:21 GMT References: <10488@jpl-devvax.JPL.NASA.GOV> Sender: news@bwdls58.UUCP Distribution: comp Organization: Bell-Northern Research, Ottawa, Canada Lines: 24 In-reply-to: lwall@jpl-devvax.JPL.NASA.GOV's message of 20 Nov 90 21:55:24 GMT In article <10488@jpl-devvax.JPL.NASA.GOV> lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) writes: In article walt@bcarh133.uucp (Walt Sullivan) writes: : I've modified the scan_password script ($Header: scan_passwd,v 3.0 89/10/18 15:15:43 : lwall Locked $) that came with Perl to scan the Yellow Pages passwords, by changing : the open statement to: : : open(Pass,"ypcat passwd|") || die "Can't open passwd file: $!\n"; : : When I run it, the open fails. When I run it under the Perl debugger, it works! : It feels like a timeout problem to me. Any suggestions? I would guess you're running it under cron and your PATH is null. The open shouldn't care about timing. Try saying /usr/bin/ypcat. Nope, I'm typing the command myself, and my path is not null. Using "/usr/bin/ypcat" doesn't help either - it still says "scan_yp_passwd: Networking error." unless I run it with "perl -d" and single step past the open. -- Walt Sullivan 9D35 Carling Mail stop 104 ESN 393-7952 Unix mail: walt@bcarh133