in reply to Calling a C++ binary from Perl

does your binary have relative paths to files? if you are calling it from a different directory, then maybe your effective directory is still in your cgi folder, and so the binary program is looking for files there, instead of somewhere relative to itself. just a thought.

also, it looks like you've probably got this covered, but is it have something to do with the user? because most webservers use a different user (like 'nobody' or 'apache'), so you may want to make sure your webserver's user as the correct permissions.

Replies are listed 'Best First'.
Re^2: Calling a C++ binary from Perl
by kwaping (Priest) on May 13, 2005 at 20:58 UTC
    Yes, the binary does use relative paths, and I cannot change this fact unfortunately. I know the chdir command worked, because I invoke the c++ program by using a relative command (./programname).

    The permissions have been validated from / on down, including directories and files. Everything is either 755 or 644. Thanks for your suggestions though!