Path: utzoo!attcan!uunet!clyde.concordia.ca!mcgill-vision!snorkelwacker!usc!elroy.jpl.nasa.gov!jpl-devvax!lwall From: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Newsgroups: comp.lang.perl Subject: Re: help needed: running perl script with cron Keywords: perl script, cron, quot Message-ID: <8800@jpl-devvax.JPL.NASA.GOV> Date: 19 Jul 90 16:33:36 GMT References: <5859@jhunix.HCF.JHU.EDU> Reply-To: lwall@jpl-devvax.JPL.NASA.GOV (Larry Wall) Organization: Jet Propulsion Laboratory, Pasadena, CA Lines: 18 In article <5859@jhunix.HCF.JHU.EDU> shan_x@jhuvms.bitnet writes: : ====================================== : : The following perl script calculates disk space used by all users. : If I run it interactively, it works fine. But if I put it in "crontab", : it runs but doesn't output anything. It seems if "cron" runs it, : "open(IN, 'quot|')" doesn't work. I really can't figure out what is : wrong with it. Any help is greately appreciated. If you throw in a line at the top that says something like $ENV{'PATH'} = '/bin:/usr/bin:/etc:/usr/etc:/usr/ucb'; (or whatever) I bet it would work better. cron doesn't keep much of a PATH. Another place people get in trouble is running programs that want a controlling terminal, though I don't think that's your problem. Larry