Re: lynx and php, slightly OT
| From: | David Robley | Date: | Thu, 06 Jul 2000 01:34:35 +0000 |
| Subject: | Re: lynx and php, slightly OT | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-5140@lists.php.net to get a copy of this message | ||
On 5 Jul, Greg Donald wrote:
> Sorry for the somewhat off topic post, but I'm running out of people to
> ask...
>
> I got a cronjob that performs this command:
>
> 30 * * * * /usr/bin/lynx -dump http://localhost/dir/build.php
> > /dev/null
>
> I changed my OS from FreeBSD 2.2.7 to RedHat 6.2 this past weekend, and now
> lynx is filling root's mailbox with error messages like this:
>
> Your terminal lacks the ability to clear the screen or position the cursor.
>
> And of course the job doesn't run.
>
> I tried adding -term=VT100 to the string but it didn't change anything. I
> also tried changing -dump to -source but that didn't work either. My
> build.php script is unchanged for several months now.
>
> Running /usr/bin/lynx -dump http://localhost/dir/build.php >
> /dev/null from
> the command line produces no errors.
>
> Any idea what I'm doing wrong?
>
> Thanks,
> Greg
To quote Richard, Wild Guess Time. The environment in which cron runs
may not include a value for TERM; try exporting TERM=vt100 in your cron
job.
Cheers
--
David Robley | WEBMASTER & Mail List Admin
RESEARCH CENTRE FOR INJURY STUDIES | http://www.nisu.flinders.edu.au/
AusEinet | http://auseinet.flinders.edu.au/
Flinders University, ADELAIDE, SOUTH AUSTRALIA