in reply to Running Command Line Programs from a CGI Script

I'd check the weblogs, maybe you'll find a bit more info in there. I do also suspect permissions issues but then again I've seen weirder things....
you can also try running it this way...
$output=`/opt/csw/bin/octave -qfH < $filename`;