in reply to ticked off with backticks
this is my preferred way. The close function makes sure that buffers are flushed. From my experience as programmer...the complex lines in a program are usually not at fault...instead it's the simple lines that cause problems. print $cmd to stdout just to make sure it has what you think it has. regarding apache user permissions...you can replicate how it works on the webserver by su - nobody, or whatever the apache user is, and try to run the program on the command line, i.e. gnuplot $whatever_your_cmd_isopen(GNUPLOT,"gnuplot $cmd |") or die; @output = <GNUPLOT>; close GNUPLOT or die "error reading GNUPLOT";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: ticked off with backticks
by bret.foreman (Acolyte) on Aug 19, 2004 at 16:21 UTC | |
by revdiablo (Prior) on Aug 19, 2004 at 16:33 UTC |