[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: octave script in cgi-bin
From: |
Mike Miller |
Subject: |
Re: octave script in cgi-bin |
Date: |
Sun, 10 Oct 1999 22:12:17 -0500 (CDT) |
I seem to have answered my own question, but I'd still like to know if
there's a better way to do this. This script....
#!/usr/local/bin/octave -qf
disp(['\n'])
rand(3)
Will work when called by the web server. The 'disp' line just writes a
newline. (I tried it before with a space in the line and that did not
work -- it seems to need a completely empty line.) This works, but seems
inelegant.
Also, are there security issues with doing this? It looks pretty safe
to me, but I'd appreciate any suggestions.
Regards,
Mike
On Sun, 10 Oct 1999, Mike Miller wrote:
> (note the additional 'echo' line). Anyway, I want Octave to be able to do
> this sort of thing for me. Here's a simple example:
>
> #!/usr/local/bin/octave -qf
> rand(3)
>
> This script will produce a 3-by-3 matrix of random values when called from
> the command line, but it gives an error when called by the web server.
> Forcing it to produce some blank lines didn't seem to help.
>
> So what's the trick? How can I make octave pump the output to the web
> server?
---------------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL. To ensure
that development continues, see www.che.wisc.edu/octave/giftform.html
Instructions for unsubscribing: www.che.wisc.edu/octave/archive.html
---------------------------------------------------------------------