Jump to content

Unable to execute a shell script


sree4u

Recommended Posts

Dear all,

 

I have a php file which calls the hashdeep command.  The problem which i am encountering is, it is executing the script partially.

 

The code is given below:-

 

<?php
$output = shell_exec('nohup /usr/local/bin/hashdeep -c md5,sha1 -r /opt/lampp/htdocs/enroll/192.168.229.128/ > /opt/lampp/htdocs/enroll/192.168.229.128/192.168.229.128.log');
echo "<pre>$output</pre>";
?>

It is creating the log file within the directory, but with zero bytes.

 

Please help in this regards.

 

Regards,

 

Sreejith

Link to comment
https://forums.phpfreaks.com/topic/279774-unable-to-execute-a-shell-script/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.