Re: Run Pgnuplot.exe in an ASP page

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: D. Gong (ygong06_at_yahoo.com)
Date: 09/27/04


Date: 27 Sep 2004 06:41:38 -0700

Hi,

Go to http://sourceforge.net/project/showfiles.php?group_id=2055
The version I downloaded was gp373w32.zip

Yes the pgnuplot.exe, .gnup files are all in the same folder but it
didn't work, pgnuplot did not even create the gif. I know the .gnup
file works because I can run pgnuplot and make the gif file by going
Start-Run-"pgnuplot.exe ......gnup" but when I try to do it w/ the
script it fails.

My localhost directory is on C:\ and I gave IUSR_<MACHINENAME> r/w
rights on c: already.

Dave

"McKirahan" <News@McKirahan.com> wrote in message news:<bD%4d.253126$Fg5.43501@attbi_s53>...
> "D. Gong" <ygong06@yahoo.com> wrote in message
> news:79d996b3.0409241132.251f2ad3@posting.google.com...
> > Hi,
> >
> > I'm trying to run pgnuplot.exe from an ASP page.
> > I'm using Win2k developing in local environment.
> >
> > Here is the ASP code:
> >
> > <%
> > dim shell
> > set shell = Server.CreateObject("WScript.Shell")
> > shell.Run "C:\PlotENOM\pgnuplot.exe
> > C:\PlotENOM\rad28F77.tmp426827454.gnup", 10, true
> > Response.Write "<IMG SRC=radD7985.tmp426827454.gif>"
> > %>
> >
> > Pgnuplot is supposed to take plotting instructions from the .gnup file
> > and create the .gif file.
> >
> > The .gif file should then be loaded into the web page.
> >
> > Problem: the .gif file is not created.
> >
> > Has anyone had this problem before?
> >
> > Thanks,
> > Dave
>
> Can you put the exe and gnup files in the dame folder as your ASP page?
>
> <%
> Const gnup = "rad28F77.tmp426827454"
> Dim runs
> runs = "pgnuplot.exe " & gnup & ".gnup"
> dim shell
> set shell = Server.CreateObject("WScript.Shell")
> shell.Run "%comspec /c " & runs, 1, true
> Response.Write "<IMG SRC='" & gnup & ".gif' alt='" & gnup & "'>"
> %>
>
> I took the liberty of ensuring that the .gnup and .gif file had the same
> name instead of
> "rad28F77.tmp426827454.gnup" and "radD7985.tmp426827454.gif" or did you want
> that?
>
> It sounds like an interesting utility. Where can I download a WIndows
> version of "pgnuplot.exe", as well as a ".gnup" file and documentation from?
> Thanks.