Other *NIXThis forum is for the discussion of any UNIX platform that does not have its own forum. Examples would include HP-UX, IRIX, Darwin, Tru64 and OS X.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I stored the script that invokes pdftotext in usr/local/bin.
Then I moved it to download folder temporarily,
where I assume it won't create any trouble.
I never moved pdftotext.
I have tried suggested code,
Code:
which pdftotext
find / -name pdftotext 2>/dev/null
obtaining the result
Code:
/usr/local/Caskroom/pdftotext
where I have checked, & it's there
(no other files in that directory).
I tried executing pdftotext by specifying full path, as suggested.
Still, Command not found.
So I investigated further, finding pdftotext is where I thought,
but as a directory.
"pdftotext" is a directory containing subdirectory "latest".
Bash is [almost] the same for mac and linux. The difference is the OS itself. bash is just a tool, it does not work without an OS.
In my 2nd post to this thread, I mentioned using MacOS, as the possible source of difficulty running globstar, since MacOS-13 has old bash version.
Code:
"shopt -s globstar" produces,
"-bash: shopt: globstar: invalid shell option name" - cuz MacOS-13 old bash version.
Update attempt failed for inability to edit system file.
So I removed "shopt -s globstar". Changed "**/*.pdf;" to "*.pdf;"
I didn't differentiate bash from Linux. Remember, I'm on this board because I don't know nearly as much as those who generously volunteer their time to help.
Well that's wrong.
Most of the commands you are using in this thread are not bash commands. They are provided by your operating system.
Nevertheless, my previous advice still stands.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.