Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!usc!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: Perl 3.0-18 open timeout? Message-ID: <10488@jpl-devvax.JPL.NASA.GOV> Date: 20 Nov 90 21:55:24 GMT References: Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Distribution: comp Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 14 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. Larry