Subject: plot2d in Lisp CGI (was: plot2d output "")
From: Yigal Asnis
Date: Mon, 17 Sep 2007 13:17:21 -0700 (PDT)
It turns out that return value of plot2d ("") wasn't
problem. I suppressed it by (progn #$plot2d(...)$
(princ "something I need to print")) but CGI program
still stuck.
If I execute the CGI file from terminal, it works -
plot2d generates plot file and all other output work
as expected.
But if I point to CGI file with browser, the plot file
isn't generated and all commands after plot2d aren't
executed.
I think the problem is calling external function
(gnuplot) from CGI.
I use Apache with mod_cgi on Debian.
Yigal Asnis
--- Robert Dodier <robert.dodier at gmail.com> wrote:
> On 9/17/07, Yigal Asnis <yigalasnis at yahoo.com>
> wrote:
>
> > Robert, I know about the difference between $ and
> ;. The problem is I call
> > Maxima from Lisp (clisp) so it already ends with
> $:
> >
> > #$plot2d(...)$
> >
> > What can I do in this case?
>
> Well, since you're calling from Lisp, I would
> imagine that you have
> control over whether the return value is printed or
> not.
> If that's not the case, then I don't know what's
> going on here.
> Maybe you need to supply more detail.
>
> best
>
> Robert Dodier
>
Yigal Asnis
need to solve math problems for the school - try my site (in hebrew)
math-tool.co.il
____________________________________________________________________________________
Luggage? GPS? Comic books?
Check out fitting gifts for grads at Yahoo! Search
http://search.yahoo.com/search?fr=oni_on_mail&p=graduation+gifts&cs=bz