Set path of terminal tools, e.g. ImageMagick, in Workbench [message #72844] |
Sat, 09 October 2010 14:30 |
Reno
Messages: 7 Registered: November 2005
|
Junior Member |
|
|
Hello gurus,
I'm trying to use Unix tools, in IDL Workbench, e.g. use ImageMagick
via David's PS_START and PS_END. It turns out that the SPAWN does not
recognise the tools, like,
IDL> SPAWN, 'convert -version'
bash: convert: command not found
I installed the ImageMagick through MacPorts and it's in /opt/local/
bin, but I don't think the location doesn't really matter since the
tools are properly set its path. When I run the same code in IDL in
terminal environment, it is just perfect with not problem what so
ever.
When I give full path of ImageMagick, it works fine.
IDL> SPAWN, '/opt/local/bin/convert -version'
Version: ImageMagick 6.6.4-9 2010-10-09 Q16 http://www.imagemagick.org
Copyright: Copyright (C) 1999-2010 ImageMagick Studio LLC
Features: OpenMP
It implies that the whatever terminal environment operating through
IDL Workbench is not the same as the one running in real terminal.
How can I fix the problem? It's annoying to run IDL both in Workbench
(for debugging) and terminal (running the code). Tips would be
appreciated.
Cheers,
Reno
|
|
|