June 27th, 2011, 12:39 PM
Command not found
its been a long time since i've done anything linuxy, please help
when i go to the directory with the command it works, such as...
It outputs my pdf nicely
sudo pdftotext /home/blaah/blaahAgain/images/test.pdf -
but, when i try to run it from another location, it says
"command not found"
sudo /usr/local/bin/pdftotext /home/blaah/blaahAgain/images/test.pdf -
sudo: /usr/local/bin/pdftotext: command not found
June 27th, 2011, 01:34 PM
this might work... i'm trying to run it from a php script so we'll see how it goes..
cd /usr/local/bin;sudo pdftotext /home/blaah/blaahAgain/images/test.pdf -
June 27th, 2011, 02:52 PM
I suspect the sudoers file is 'wonky' inasmuch as it only references the basic name, not the fully qualified name. That is wrong, since it would allow the user (you in this case) to run ANY command so long as it was named the right thing.
The moon on the one hand, the dawn on the other:
The moon is my sister, the dawn is my brother.
The moon on my left and the dawn on my right.
My brother, good morning: my sister, good night.
-- Hilaire Belloc
June 27th, 2011, 04:48 PM
On my fedora computer pdftotext is in /usr/bin not /usr/local/bin
Try 'whereis pdftotext' to verify the location of the executable on your machine.
Comments on this post
Bartender to Rene Descartes "have another beer?" Descartes: "I think not" and he vanished.
June 27th, 2011, 05:22 PM
The path is correct (I put it there myself, as per their docs).
Originally Posted by Doug G
I can run it now using the method I mentioned above, but now I have the problem where I can only sudo it, if i change the perms and try to run it I get a “Segmentation fault” error.