Re: exec 'lynx' failed ???
| From: | John McKown | Date: | Sat, 30 Sep 2000 13:56:39 +0000 |
| Subject: | Re: exec 'lynx' failed ??? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-18162@lists.php.net to get a copy of this message | ||
On Fri, 29 Sep 2000, Sonia Tsui wrote:
> Has anyone done this before?
> exec("lynx -dump
> http://mysite.com/cgi-bin/mytest.cgi", $result,$ret_val)
>
> I got a return value of 255, which means the exec of 'lynx' failed. I
> don't know why though. Anyone know why?
>
> ---Sonia
I just tried this on my RedHat system. It turns out that the user
"nobody", on my system, has a home directory of "/" (root). Of course,
they cannot write to this directory (and I don't want them to!). What I
did was:
usermod -d /tmp nobody
to set the "/tmp" subdirectory (which is world-writable on most
systems) as the home directory for "nobody".
Hope this helps,
John