View Single Post
Old 10-19-2010, 02:44 AM   #12
frabjous
Wizard
frabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameterfrabjous can solve quadratic equations while standing on his or her head reciting poetry in iambic pentameter
 
frabjous's Avatar
 
Posts: 1,213
Karma: 12890
Join Date: Feb 2009
Location: Amherst, Massachusetts, USA
Device: Sony PRS-505
Ugh. It looks like mac and linux use different syntax for some of the basic Unix tools. That's very frustrating.

Anyway, I've updated the script in an attempt to solve some of these problems, maybe not all, though.

Quote:
Originally Posted by kidblue View Post
usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
mktemp [-d] [-q] [-u] -t prefix
mktemp: illegal option -- -
usage: mktemp [-d] [-q] [-t prefix] [-u] template ...
mktemp [-d] [-q] [-u] -t prefix
I wish I knew where to find the right syntax for the mac version of mktemp! But I've changed the script so it doesn't use the --suffix option any more.

Quote:
Reading metadata...
./pdfstretch.sh: line 12: ebook-meta: command not found
./pdfstretch.sh: line 13: ebook-meta: command not found
./pdfstretch.sh: line 14: ebook-meta: command not found
Weird. You did say you had calibre installed, right? Can you find a program called "ebook-meta" anywhere on your computer? Mine is at /opt/calibre/ebook-meta. What version of calibre are you using?

Anyway, those errors shouldn't be fatal. They'll just mean that you'll lose the metadata from the file. But it would be nice to figure out what goes wrong.

Quote:
Author(s) recognized as .
Title recognized as .
Language recognized as .
Those are just byproducts of not finding ebook-meta.

Quote:
./pdfstretch.sh: line 21: : No such file or directory
I hope that's a byprodoct of the other problems, but what happens if you type gs -v from the command line?

Quote:
sed: -i may not be used with stdin
sed: -i may not be used with stdin
Totally mysterious. I wasn't using stdin there. But I've edited the script to remove the -i flags.

The revised script is in the post above. (I swapped out the old attachment.)

Last edited by frabjous; 10-19-2010 at 02:46 AM.
frabjous is offline   Reply With Quote