When I try below command inside a controller it gives me this error.
$process = new Process(['usr/local/bin/pdf2htmlEX --version']);
I also Tried $output = exec('echo "PASSWORD" | sudo -S "usr/local/bin/pdf2htmlEX --version" 2> /dev/null');
Creating Symlink and chmod 777 doesn't help at all.
Asked
Active
Viewed 81 times
0

Saad
- 11
--version
argument as separate elements,['usr/local/bin/pdf2htmlEX', '--version']
. Dependant on the working directory, ou may also need to make the path absolute i.e./usr/local
rather thanusr/local
. – steeldriver Sep 08 '22 at 12:49