Page 1 of 1

Check to see if Image Magic is installed

Posted: 2008-08-27T10:31:47-07:00
by michael1t
Hello All,

I was looking for some help for windows xp ... I need a way to issue a command line function to test to see if image magic is installed and what version it is ...

Something simple that writes the results to a text file ... installed or not installed

thanks in advance

Michael T.

Re: Check to see if Image Magic is installed

Posted: 2008-08-27T10:42:00-07:00
by fmw42
I am not a windows user, but this works for me on a Unix (Mac) command line environment:

identify -version > im_version.txt


or

str=`identify -version`
[ "$str" != "" ] && echo "installed" > version.txt || echo "not installed" > version.txt

Re: Check to see if Image Magic is installed

Posted: 2008-08-27T14:51:32-07:00
by michael1t
thanks that worked great

Michael T.

Re: Check to see if Image Magic is installed

Posted: 2008-08-27T15:55:20-07:00
by fmw42
P.S.

This makes it all one command:

[ "$(identify -version)" != "" ] && echo "installed" > version.txt || echo "not installed" > version.txt