Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re: ticked off with backticks

by etcshadow (Priest)
on Aug 19, 2004 at 03:05 UTC ( #384175=note: print w/replies, xml ) Need Help??

in reply to ticked off with backticks

my $output = `gnuplot $cmd 2>&1`;
That will merge the STDERR output of gnuplot into STDOUT, so it'll all end up together in $output. Then you go from there in terms of working out your issues.

BTW, you might have better luck using IPC::Run, if you need to separate STDOUT and STDERR:

use IPC::Run qw( run ); my ($stdout, $stderr); run ["gnuplot", $cmd], undef, \$stdout, \$stderr;
Something like that.
------------ :Wq Not an editor command: Wq

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://384175]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (5)
As of 2019-09-23 15:11 GMT
Find Nodes?
    Voting Booth?
    The room is dark, and your next move is ...

    Results (280 votes). Check out past polls.