Hello all,
I'm in the process of trying to convert some of the Octave (and
Matlab) scripts that I use on a regular basis into stand-alone
executables, but I've been unable to get my scripts to run. For
example, if I run the simple two-line script
#! /Applications/Octave.app/Contents/Resources/bin/octave
disp('hello');
from the shell (e.g. './otest'), I get
./otest: line 2: syntax error near unexpected token `'hello''
./otest: line 2: `disp('hello');'
as output. The script works fine, of course, from within the
interactive environment or if I do 'octave otest' from the shell. Can
anyone make sense of what's going on here? Is this a shell error
rather than an Octave error? FYI, I'm using the most recent version of
Octave.app (December 2007) on a new iMac running Leopard.
Thanks,
Rob
|