Hi! I've written a perl cgi script to create a web page. Now what I'd like to do is to execute an Octave script from the Perl one and get its output inside my perl script. I'm working on a Windows XP machine. I tried $result = `C:/Program\ Files/GNU\ Octave\ 2.1.50/bin -q my_script.m`; but $result is still null. The octave script runs correctly if I use it in the Gnu Octave shell. Any help would be really appreciated.
Try running that external program with:
system 'command to run' and die $!;
or:
$result = `command to run` or die $!;
and see what it says. Watch out for whitespace. -- ZSDC
-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>