perl - How to stop gnuplot window poping-up when using it from command line in windows? -


I am using Perl to open a pipe on pgnuplot.exe for output plot command. For example, open

  ($ PLOT, "| pgnuplot") or die "Error: gnuplot not found!"; Print $ PLOT & lt; & Lt; EOPLOT; Set Term PostScript EPS Extended "Aerial" 20 Set Output "somefile.eps" ## Some plot creators here ## EOPLOT is close to $ plot;   

I have noticed that a window always pops up for GNUplot and it captures the focus of my mouse and keyboard momentarily. This link is going on while the computer makes it difficult to use .

Is there any way to stop pgnuplot from opening a window?

Comments