kevygee
08-02-2004, 06:22 PM
I'm writing a perl/cgi script where I need to run a different program (a compiled c program). I've tried using backticks in order to catch the output (for error handling purposes). Here are a couple lines of what I've tried:
my @programCall = `./programName args`;
print "@programCall";
OUTPUT:
(nothing, and the program doesn't run)
my @programCall = `exec $fullPath/programName args`;
print "@programCall";
OUTPUT:
sh: fullPath/programName: cannot execute
I'm not really sure how to get this program to run. I've changed permissions on all folders and files to 755, so if it's a permission problem, I don't know what else to change.
I hope someone can help!! Thanks.
my @programCall = `./programName args`;
print "@programCall";
OUTPUT:
(nothing, and the program doesn't run)
my @programCall = `exec $fullPath/programName args`;
print "@programCall";
OUTPUT:
sh: fullPath/programName: cannot execute
I'm not really sure how to get this program to run. I've changed permissions on all folders and files to 755, so if it's a permission problem, I don't know what else to change.
I hope someone can help!! Thanks.