[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem with octave

From: Jordi Gutiérrez Hermoso
Subject: Re: Problem with octave
Date: Mon, 30 Aug 2010 11:15:06 -0500

2010/8/30 Julien Martin <address@hidden>:
> Thanks for your reply. I don't understand what's wrong with my "she bang"

A shebang is a rather clever mechanism for telling Linux or any other
kernel to run an interpreter. Roughly speaking, when your shell tells
Linux to execute a file, Linux will look at the first two bytes of
your file. If they're the special shebang bytes, Linux will then look
at the next string looking for an interpreter with which to run your
script. It reads the next string quite literally.

That being said, the problem might be that you leave a space in front
of the shebang or that you haven't given execution permissions to the
function script.

> Regarding first point, how can I invoke my function?

I don't know. I didn't try to understand the function, because I don't
really know what financial information it's expecting. I can tell you
it's a function that takes six parameters as explained in its
docstring. It looks like they're all scalars.

> What's wrong with my octave code?

You didn't give the function parameters.

reply via email to

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