CVS: main/TOOLS plotpsnr.pl,1.1,1.2
Update of /cvsroot/mplayer/main/TOOLS In directory mail:/var/tmp.root/cvs-serv15683 Modified Files: plotpsnr.pl Log Message: 10l Index: plotpsnr.pl =================================================================== RCS file: /cvsroot/mplayer/main/TOOLS/plotpsnr.pl,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- plotpsnr.pl 9 Feb 2003 13:06:05 -0000 1.1 +++ plotpsnr.pl 9 Feb 2003 13:13:00 -0000 1.2 @@ -18,7 +18,7 @@ demo_file(); system ("gnuplot $dem_file"); -#system("rm $dem_file $options{file}.[IPB] $options{file}.diff* 2>/dev/null"); +system("rm $dem_file $options{file}.[IPB] $options{file}.diff* 2>/dev/null"); exit 0;
On Sunday 09 February 2003 14:13, Jonas Jermann CVS wrote:
system ("gnuplot $dem_file"); -#system("rm $dem_file $options{file}.[IPB] $options{file}.diff* 2>/dev/null"); +system("rm $dem_file $options{file}.[IPB] $options{file}.diff* 2>/dev/null"); btw. I don't currently have gnuplot installed, but if it supports reading commands from a pipe you could use perl to open a pipe to it as a file descriptor and use it instead of your temp file. -- Best Regards, Atmos
- MPlayer Developer - http://mplayerhq.hu/ - ____________________________________________
Hi On Thu, Feb 13, 2003 at 12:03:57AM +0100, Felix Buenemann wrote:
On Sunday 09 February 2003 14:13, Jonas Jermann CVS wrote:
system ("gnuplot $dem_file"); -#system("rm $dem_file $options{file}.[IPB] $options{file}.diff* 2>/dev/null"); +system("rm $dem_file $options{file}.[IPB] $options{file}.diff* 2>/dev/null"); btw. I don't currently have gnuplot installed, but if it supports reading commands from a pipe you could use perl to open a pipe to it as a file descriptor and use it instead of your temp file.
I tried to do sthg like this (first). But I didn't find a way to pass commands through pipes or sthg similar, so I wrote this and it worked for me. Feel free to fix it :). I confess: It's ugly this way... ;) Regards Jonas
Hi
On Thu, Feb 13, 2003 at 12:03:57AM +0100, Felix Buenemann wrote:
On Sunday 09 February 2003 14:13, Jonas Jermann CVS wrote:
system ("gnuplot $dem_file"); -#system("rm $dem_file $options{file}.[IPB] $options{file}.diff* 2>/dev/null"); +system("rm $dem_file $options{file}.[IPB] $options{file}.diff* 2>/dev/null");
btw. I don't currently have gnuplot installed, but if it supports reading commands from a pipe you could use perl to open a pipe to it as a file descriptor and use it instead of your temp file.
I tried to do sthg like this (first). But I didn't find a way to pass commands through pipes or sthg similar, so I wrote this and it worked for me. Feel free to fix it :). I confess: It's ugly this way... ;) well it's pretty easy, use something like open(MYDESC, "|gnuplot"), then use
On Thursday 13 February 2003 18:49, Jonas Jermann wrote: print MYDESC "<somegnuplotcommand>\n", if it doesn't work check back in perldoc -f open .
Regards Jonas
-- Best Regards, Atmos ____________________________________________ - MPlayer Developer - http://mplayerhq.hu/ - ____________________________________________
participants (3)
-
Felix Buenemann -
Jonas Jermann -
Jonas Jermann CVS