Search found 5 matches

by DennyC
2017-02-12T18:10:36-07:00
Forum: Users
Topic: difference between cmd line & script
Replies: 9
Views: 3985

Re: difference between cmd line & script

figured it out kids...

its all about... export DYLD_LIBRARY_PATH="$MAGICK_HOME/lib/"

it exists in my .bash_profile so anything I do on the command line it works. Anything I execute in a script (with #!/bin/bash or with awk), the system bash profile has the line missing. If I add the above line to ...
by DennyC
2017-02-12T14:51:49-07:00
Forum: Users
Topic: difference between cmd line & script
Replies: 9
Views: 3985

Re: difference between cmd line & script

I simplified the problem to a two line script...

A script of the following fails with the errors listed above.

#!/bin/sh
convert tmpFile.pgm tmpFile.eps


but "convert tmpFile.pgm tmpFile.eps" on the command line works.
by DennyC
2017-02-12T13:39:05-07:00
Forum: Users
Topic: difference between cmd line & script
Replies: 9
Views: 3985

Re: difference between cmd line & script

Yes... I can run my IM command (convert) in a terminal without any errors outside of AWK. Works very nicely

here is the answers to your questions...

type -a convert
convert is /Users/dennis/Applications/ImageMagick-6.8.9/bin/convert

which convert
/Users/dennis/Applications/ImageMagick-6.8.9/bin ...
by DennyC
2017-02-12T12:43:52-07:00
Forum: Users
Topic: difference between cmd line & script
Replies: 9
Views: 3985

Re: difference between cmd line & script

just tried it and its still a problem. Output bellow...


dyld: Library not loaded: /ImageMagick-6.8.9/lib/libMagickCore-6.Q16.2.dylib
Referenced from: /Users/dennis/Applications/ImageMagick-6.8.9/bin/convert
Reason: image not found
>>
>> /Users/dennis/Applications/ImageMagick-6.8.9/bin/convert ...
by DennyC
2017-02-12T11:31:09-07:00
Forum: Users
Topic: difference between cmd line & script
Replies: 9
Views: 3985

difference between cmd line & script

Hi...

I have an awk script that I am trying to use convert in and it fails with the following error...

dyld: Library not loaded: /ImageMagick-6.8.9/lib/libMagickCore-6.Q16.2.dylib
Referenced from: /Users/dennis/Applications/ImageMagick-6.8.9/bin/convert
Reason: image not found

if I copy and ...