[Mplayer-cvslog] CVS: main/TOOLS plotpsnr.pl,1.1,1.2

Felix Buenemann atmosfear at users.sourceforge.net
Thu Feb 13 22:59:32 CET 2003


On Thursday 13 February 2003 18:49, Jonas Jermann wrote:
> 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 
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/ -
____________________________________________


More information about the MPlayer-cvslog mailing list