in reply to I got it working now.in thread Running a C Program within Perl.
You're quite welcome.
Lesson for the day: never field a shell script without a shebang line!
dmm