[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to get Octave.app to work?
From: |
Matthias Brennwald |
Subject: |
Re: How to get Octave.app to work? |
Date: |
Mon, 3 Sep 2007 19:34:45 +0200 |
On 03.09.2007, at 19:03, address@hidden wrote:
Macintosh only.
Are you sure?
I am trying to get the octave-2.9.13 in Octave.app to run from within
a perl script. Before I get into that I am stymied by an error I get
from octave-2.9.9. Can anyone tell me what is going wrong?
Here's the problem in its simplest form.
Test 1. From terminal I execute
vic$ /Applications/Octave.app/Contents/Resources/bin/octave
This gets me into octave-2.9.13. Now I execute
octave-2.9.13> printf("%d\n", fopen ("~/desktop/
octave_output.txt", "wt"));
The output is
3
You've just opened the file with write access...
Test 2. From terminal I execute
vic$ /usr/local/bin/octave
This gets me into octave-2.9.9. Now I execute
octave> printf("%d\n", fopen ("~/desktop/octave_output.txt",
"wt"));
The output is
-1
...and you're trying to open the same file with write access again. I
guess that might explain why this second call to fopen is not
successful. Not sure, though.
Cheers
Matthias
-------
Matthias Brennwald
Lägernstrasse 6
CH 8037 Zürich
+41 (0)44 364 17 03
address@hidden