This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
Other format: | [Raw text] |
Greg,
No, it's not necessary to set the PATH, I was just trying to guess why there was a difference between a shell script and the command line... Just out of curiousity, is the PATH the same in the shell script and in the shell?
Also, are you executing Cygwin perl in both cases? Try "type -a perl" from the shell (bash?)... How are you invoking the script (i.e., by calling it directly, or through "perl scriptname")? If directly, what does the shebang ("#!") line at the top of the script say? Igor
Example: #!/bin/sh export PERL_DL_DEBUG=1
while sleep 5 do if [ -f "/tmp/flag" ]; then rm /tmp/flag perl -e 'use Image::Magick; print("Hello!");' fi done
-- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |