[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
octave shebang
From: |
Paul Kienzle |
Subject: |
octave shebang |
Date: |
Wed, 13 Jul 2005 02:12:12 -0400 |
I'm looking for an octave shebang which doesn't depend on where octave
is installed but instead picks it up from the path.
This is the best I came up with:
#!/bin/sh
cat <<EOF | octave -q
This works even without the final EOF on bash (OS X and Linux) and ksh
(IRIX).
Note that the following works from the command line, but not as #!
/usr/bin/env octave -q
Any other suggestions?
Thanks,
- Paul
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
- octave shebang,
Paul Kienzle <=