ActiveState and spawning commands
Russ Schnapp
rlssdpm at schnapp.org
Tue May 30 09:46:44 CDT 2000
~sdpm~
> what do you get after running 'identify image.jpg' from a
command line?
It runs properly from the command line.
> how about
> system("identify", "image.jpg") == 0 or die "system failed: $?"
> does that fail too?
I assumed that if backtick and opening a pipe fail, system will
undoubtedly fail, too. Yup -- I just tried it.
Actually, in today's test, all three variants (backtick, pipe, system)
fail without setting $? nonzero! And yet, the very same command,
from the command line, works.
>what version of perl are you using?
I think I'm using ActivePerl version 5.20. perl -v reports binary build
522, from 11/99.
> did you see http://www.imagemagick.org/www/perl.html ?
Of course.
> and btw, is identify program in your path?
Yes, though it doesn't seem to matter whether I explicitly name the
executable or fetch it via PATH.
...Russ
~sdpm~
The posting address is: san-diego-pm-list at hfb.pm.org
List requests should be sent to: majordomo at hfb.pm.org
If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at happyfunball.pm.org> with the following
command in the body of your email message:
unsubscribe san-diego-pm-list
If you ever need to get in contact with the owner of the list,
(if you have trouble unsubscribing, or have questions about the
list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
This is the general rule for most mailing lists when you need
to contact a human.
More information about the San-Diego-pm
mailing list