LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX
User Name
Password
Other *NIX This 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


Reply
  Search this Thread
Old 06-25-2019, 03:07 AM   #16
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 11,968
Blog Entries: 9

Rep: Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199

you don't remember where you stored your script?
Not sure how we can help there.
Code:
which pdftotext
find / -name pdftotext 2>/dev/null
 
Old 06-25-2019, 01:37 PM   #17
ericlindellnyc
Member
 
Registered: Jun 2017
Posts: 73

Original Poster
Rep: Reputation: Disabled
pdftotext location

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).

Thanks for continued assistance.

Now maybe restore boot path to check this folder?
 
Old 06-25-2019, 02:18 PM   #18
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 11,968
Blog Entries: 9

Rep: Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199
well you can execute pdftotext by entering
Code:
/usr/local/Caskroom/pdftotext
at the command prompt.
Or move it back to something in your path.
Make sure it's still executable.

But IIRC that has very little to do with the actual problem here? posts #10, #11?
 
Old 06-25-2019, 07:15 PM   #19
ericlindellnyc
Member
 
Registered: Jun 2017
Posts: 73

Original Poster
Rep: Reputation: Disabled
I should probably try that.

What I did instead was to move the file
from /usr/local/Caskroom to usr/local/bin,
which is in my path.

Then I rebooted, tried it again,
& still command not found !!

Thoughts?

Thanks for hanging with me on this.
 
Old 06-25-2019, 07:25 PM   #20
ericlindellnyc
Member
 
Registered: Jun 2017
Posts: 73

Original Poster
Rep: Reputation: Disabled
Now I'm really confused.

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".

"latest" contains
Contact.webloc
Installer.pkg
Read Me.html
Website.webloc
 
Old 06-26-2019, 05:01 PM   #21
ericlindellnyc
Member
 
Registered: Jun 2017
Posts: 73

Original Poster
Rep: Reputation: Disabled
here is result of locate pdftotext

I executed locate pdftotext, obtaining this result

Code:
/private/var/db/receipts/net.bluem.pdftotext.pkg.bom
/private/var/db/receipts/net.bluem.pdftotext.pkg.plist
Code:
/usr/local/Caskroom/pdftotext
/usr/local/Caskroom/pdftotext/.metadata
/usr/local/Caskroom/pdftotext/.metadata/config.json
/usr/local/Caskroom/pdftotext/.metadata/latest
/usr/local/Caskroom/pdftotext/.metadata/latest/20190621184446.390
/usr/local/Caskroom/pdftotext/.metadata/latest/20190621184446.390/Casks
/usr/local/Caskroom/pdftotext/.metadata/latest/20190621184446.390/Casks/pdftotext.rb
/usr/local/Caskroom/pdftotext/latest
/usr/local/Caskroom/pdftotext/latest/.resources
/usr/local/Caskroom/pdftotext/latest/.resources/.DS_Store
/usr/local/Caskroom/pdftotext/latest/.resources/diskimage-background.png
/usr/local/Caskroom/pdftotext/latest/Contact.webloc
/usr/local/Caskroom/pdftotext/latest/Installer.pkg
/usr/local/Caskroom/pdftotext/latest/Installer.pkg/Contents
/usr/local/Caskroom/pdftotext/latest/Installer.pkg/Contents/Archive.bom
/usr/local/Caskroom/pdftotext/latest/Installer.pkg/Contents/Archive.pax.gz
/usr/local/Caskroom/pdftotext/latest/Installer.pkg/Contents/Info.plist
/usr/local/Caskroom/pdftotext/latest/Installer.pkg/Contents/PkgInfo
/usr/local/Caskroom/pdftotext/latest/Installer.pkg/Contents/Resources
/usr/local/Caskroom/pdftotext/latest/Installer.pkg/Contents/Resources/InstallationCheck
/usr/local/Caskroom/pdftotext/latest/Installer.pkg/Contents/Resources/de.lproj
/usr/local/Caskroom/pdftotext/latest/Installer.pkg/Contents/Resources/de.lproj/Description.plist
/usr/local/Caskroom/pdftotext/latest/Installer.pkg/Contents/Resources/de.lproj/License
/usr/local/Caskroom/pdftotext/latest/Installer.pkg/Contents/Resources/de.lproj/ReadMe
/usr/local/Caskroom/pdftotext/latest/Installer.pkg/Contents/Resources/de.lproj/Welcome
/usr/local/Caskroom/pdftotext/latest/Installer.pkg/Contents/Resources/de.lproj/background
/usr/local/Caskroom/pdftotext/latest/Installer.pkg/Contents/Resources/package_version
/usr/local/Caskroom/pdftotext/latest/Installer.pkg/Contents/Resources/pkmkshellutility
/usr/local/Caskroom/pdftotext/latest/Read Me.html
/usr/local/Caskroom/pdftotext/latest/Website.webloc
Code:
/usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask/Casks/pdftotext.rb
/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask/Casks/pdftotext.rb
/usr/local/share/man/man1/pdftotext.1
/usr/local/var/homebrew/locks/579c2aa2673c9e201379bf4770b09f300c1e2f26f9c54acfcce4376addae400d--pdftotext.dmg.incomplete.lock
 
Old 06-26-2019, 05:31 PM   #22
ericlindellnyc
Member
 
Registered: Jun 2017
Posts: 73

Original Poster
Rep: Reputation: Disabled
find command and output

this is the outcome of
Code:
which pdftotext
find / -name pdftotext 2>/dev/null
Code:
/Users/eric/Downloads/talkingBXnDOXnVids/PdfHtm/conspireHnP/PDFsMostlyConspire/pdftotext
/usr/local/bin/pdftotext
 
Old 06-27-2019, 12:41 AM   #23
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 11,968
Blog Entries: 9

Rep: Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199
You aren't even using Linux.
You really should've told us from the very beginning.
 
Old 06-27-2019, 06:10 PM   #24
ericlindellnyc
Member
 
Registered: Jun 2017
Posts: 73

Original Poster
Rep: Reputation: Disabled
Woops ..

Quote:
Originally Posted by ondoho View Post
You aren't even using Linux.
You really should've told us from the very beginning.
My mistake .. It wasn't intentional, I assure you.

I was under the (apparently mistaken) impression
that bash is the same command-line system for mac and linux.

Apparently, that's not the case.
I'll make sure to post on a Mac board next time.
Sorry for wasting your time.
 
Old 06-28-2019, 12:54 AM   #25
pan64
LQ Guru
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 12,943

Rep: Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080Reputation: 4080
? How can it be unintentional ?

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.
 
Old 06-29-2019, 02:41 AM   #26
ericlindellnyc
Member
 
Registered: Jun 2017
Posts: 73

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by pan64 View Post
? How can it be unintentional ?

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.

Please don't take my oversights personally.
 
Old 06-29-2019, 02:53 AM   #27
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 11,968
Blog Entries: 9

Rep: Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199Reputation: 3199
Quote:
Originally Posted by ericlindellnyc View Post
I didn't differentiate bash from Linux.
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.
 
Old 07-01-2019, 12:04 AM   #28
ericlindellnyc
Member
 
Registered: Jun 2017
Posts: 73

Original Poster
Rep: Reputation: Disabled
I just executed the code on my Linux Mint 19.1 PC, & it worked like a charm -- the 1st time.
Thanks all for assistance.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] batch convert text files to pdf Pedroski Linux - Software 2 12-16-2018 05:43 AM
Batch images to pdf / pdf to txt geeeeky.girl Linux - Software 10 12-24-2009 01:40 AM
Software to batch convert CBR, CBZ files to PDF format JTAL604622 Linux - Software 1 06-11-2007 06:33 PM
mp3 batch convert, remote from command line zerodot Linux - Networking 1 02-12-2003 05:08 AM

LinuxQuestions.org > Forums > Other *NIX Forums > Other *NIX

All times are GMT -5. The time now is 10:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration