Re: SPAWN and IMAGEMAGICK [message #33276] |
Tue, 17 December 2002 09:57  |
mchinand
Messages: 66 Registered: September 1996
|
Member |
|
|
In article <3DFF619F.2030506@giub.unibe.ch>,
David Oesch <oesch@giub.unibe.ch> wrote:
> Hy cracks..
> I'm using IDL5.5 under LINUX REDHAT 7.2 (we got not yet IDL5.6..but Xmas
> is coming) and I'm confronted witha pretty strange thing...
> If I call the Imagemagick tool mogrify using SPAWN like this in IDL
>
> SPAWN, 'mogrify -geometry 45% /home/mydir/pic.jpg '
>
> everything works fine...BUT if I'm using the same call in an IDL batch
> file, which is started by a crontab job ( also running in background),
> this imagemagick command will not be executed.. I also tried
> command='mogrify -geometry 45% /home/mydir/pic.jpg &'
> print,command
> SPAWN,command,/SH
>
> and also
>
> SPAWN,['mogrify -geometry 45% ','' /home/mydir/pic.jpg'],/NOSHELL,
>
> but no gain...only pain
>
> any idea? would be a nice Xmas present...
>
> Cheers
> Dave
>
Your PATH might not be set correctly when using the batch file. Try
either specifying the full path to mogrify or in addition to your
print,command statement add:
spawn, 'which '+command, output
to see if it can find mogrify
--Mike
--
Michael Chinander
m-chinander@uchicago.edu
Department of Radiology
University of Chicago
|
|
|