[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: io.popen and the Windows platform
- From: meino.cramer@...
- Date: Sun, 1 Jul 2012 11:48:28 +0200
meino.cramer@gmx.de <meino.cramer@gmx.de> [12-07-01 09:24]:
> Hi,
>
> I did the following on UNIX, which works fine (the plot pops up as
> exspected)
> out = io.popen("gnuplot -persist", "w")
> out:write("plot sin(x)\n")
>
>
>
> Then I did this on Windows:
> out = io.popen("C:\\Programme\\gnuplot\\bin\\wgnuplot.exe -persist", "w")
> out:write("plot sin(x)\n")
>
>
> Which opens a gnuplot window and displays the gnuplot prompt and plot
> nothing.
>
> I would understand, if under Windows out would be nil.
>
> But it seems I have created a halfpipe ;) : It opens the program
> but writing seems not to work?!?!?
>
> Is it possible, to make this working even under windows? And if Yes:
> How?
>
> Thank you very much in advance for any help!
>
> Have a nice Sunday! :)
> Best regards,
> mcc
>
>
>
>
Hi,
solved it myself: There were different executables in that archive and
using "pgnuplot.exe" instead solved the problem.
Best regards,
mcc