|
From: Petr M. <mi...@ph...> - 2006-03-03 18:44:59
|
> Can we discuss this some more first?
> Or at least let me try out the patch first?
> I'm not 100% convinced it will always work, even on linux.
It is enclosed, please try it. I think it must work everywhere where fopen()
is implemented. (And gnuplot without fopen() cannot live.)
>>>> Actually, what some users ask for real-time plotting, is something
>>>> like
>>>> pause untilfileexist "next.dat"
>>>> pause untilfilechanged "next.dat"
>
> It seems to me easier to use system("find . -name <foo> -newer <bar>")
This is not portable either.
Actually, the most trivial solution seems to be:
prev=`ls -l bla.dat` or prev=`dir bla.dat`
if (!variable_exist(new)) new=prev # 1st time here ??????????????
if (pi > 3.0) pi=0; new=prev # 1st time here ??????????????
if (new == prev) pause 5; reread
plot 'bla.dat'
new = prev
reread
??? how to detect that a variable has not been initialized?
---
PM |