[Top][All Lists]

[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:58:44 -0500 (CDT)

On Sun, 10 Oct 1999, John W. Eaton wrote:

> On 10-Oct-1999, Mike Miller <address@hidden> wrote:
> | Also, are there security issues with doing this?  It looks pretty safe
> | to me, but I'd appreciate any suggestions.
> Are users allowed to execute arbitrary Octave commands?  If so, it is
> probably not secure.

No.  They are only allowed to execute the script, and the script accepts
no command-line arguments.

Haven't other people done this?  Let me know, if you get a chance.  It's
Sunday night, so I'm not expecting a lot of quick answers!

Here's another example:

#!/usr/local/bin/octave -qf
format bank; disp(randn(100,6)*chol(.5*ones(6)+.5*eye(6)))

execute it by going here:

It produces 100 independently distributed row vectors of length 6
according to a multivariate-normal distribution with unit variances, means
of zero and all pairs of variables (columns of the data) correlated .5.

All I had to do was put the script in my apache/cgi-bin/ directory, and it
worked.  I plan to use this in teaching.



Octave is freely available under the terms of the GNU GPL.  To ensure
that development continues, see
Instructions for unsubscribing:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]