if you are running it from a cron job, you can specify the user you
want to run as.
--- Heiko <[EMAIL PROTECTED]> wrote:
> Author: Heiko
> Email: [EMAIL PROTECTED]
> Message:
> Hi,
>
> I am trying to create a little admin tool for indexing jobs which are
> outside the regular once-a-week crone job. Here my test code:
> ======================
> $testcommand = "/path.../indexer -a -u
> http://www.aufbruch.com/newfile.html";
>
> // $testcommand = "ls -lias";
>
> $output = array();
>
> $lastline = exec($testcommand, $output);
>
> while(list($number,$line) = each($output)){
> print "$number: $line<br>";
> }
> ====================
> Nice idea, however, while the commented-out "ls -lias" works fine,
> the invoking of the indexer does not.
>
> I know that PHP programs run as user 'nobody', not as the UNIX user.
> My guess is that the indexer program is being started but has not
> permissions to read or write.
>
> But, I am not able to fix it.
>
> Any idea????
>
> Heiko
>
>
> Reply: <http://search.mnogo.ru/board/message.php?id=1682>
>
> ___________________________________________
> If you want to unsubscribe send "unsubscribe general"
> to [EMAIL PROTECTED]
>
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - Buy the things you want at great prices.
http://auctions.yahoo.com/
___________________________________________
If you want to unsubscribe send "unsubscribe general"
to [EMAIL PROTECTED]