Dear Ben
Thanks a lot for you very helpfull instruction of how to get going
with the Listen command a few weeks back. I did get command
"started" using your help, however, I have not been able get it
going yet. I would very much appreciate a helping hand here.
My goal is to have Php programm communciating with Octave, so that
one can that when a visotor click on a webpage than this webpage can
send string to Octave that makes a calcualtion and send its back to
the webpage (where we use Php) at the webpage. Also I would like to
have the Ocatve code running all the time, or at least have access
to large amount of data in the internal memory without having to
make a slow load from the harddrive between the calls. Also there
may be several user access this information at the same time.
I am not sure how to do this. But I think the Listen command would
be the way to go. Is that correct?
I try to run listen with:
octave-3.0.1:1> pkg load sockets
listen('128.0.0.1','fork')
error: connect: expecting a octave_socket or integer
octave-3.0.1:2>
But I get an error message (see above). I guess I have the wrong
call, or perhapse I need to initaitve something before.
Once this code in the Octave is up and running. Then how do you call
this rotine from Php?
I would appreciate help on this topic very much. If you do not know
how to set this up, please suggest someone that could help us out on
this.
Sincerely, Sverker Sikström
Ben Abbott skrev:
On Aug 11, 2008, at 5:05 AM, Sverker Sikström wrote:
Hi
This is probabaly a very simple questions, but I am stuck and new to
Octave. I am trying to run the command 'listen'
(http://octave.sourceforge.net/doc/f/listen.html) on Octave. But
it does
not seem to find the command:
octave-3.0.1:46> listen
error: `listen' undefined near line 46 column 1
octave-3.0.1:46>
Have I not installed Octave correctly? I am using mac 0s 10.5. 4.
Any
help is appreciated!
Sverker
I haven't tried to do this under Mac OS X, but you'll need to
install the sockets package from Octave-Forge. The "listen" command
is part of that package (it is not part of Octave's core functions).
http://octave.sourceforge.net/sockets/index.html
To install see "help pkg"
Ben