ActiveState and spawning commands

Russ Schnapp rlssdpm at
Tue May 30 09:46:44 CDT 2000


> 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 ?

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.  



The posting address is: san-diego-pm-list at

List requests should be sent to: majordomo at

If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at> 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> .
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