Problem with running the Nutch command from PHP exec()

Posted by Annibigi on Stack Overflow See other posts from Stack Overflow or by Annibigi
Published on 2009-11-18T05:42:20Z Indexed on 2010/06/13 15:02 UTC
Read the original article Hit count: 291

Filed under:
|
|

My Nutch directory lies in /home/myserv/nutch/nutch-1.0/

My php applictaion is in the diretcory /home/myserv/www/

Theres a a php file in my /home/myserv/www/ diretcory that runs a exec command to run a nutch command.PHP code is like :

$output = exec("bin/nutch all");

When I run the command from the command line I need to be in the "/home/myserv/nutch/nutch-1.0/" directory

When i'm trying to run it through the php exec() ,I just can seems to make it execute.

I have tried giving the ful path like (below) but nothing works :(

$output = exec("/home/myserv/nutch/nutch-1.0/bin/nutch all");

Desperately looking for help

© Stack Overflow or respective owner

Related posts about php

Related posts about exec