[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: use of #!/usr/bin/env octave with optargs ?
From: |
Francesco Potorti` |
Subject: |
Re: use of #!/usr/bin/env octave with optargs ? |
Date: |
Tue, 09 Sep 2008 14:56:11 +0200 |
>> I'd like to run a script with the following shebang line
>> #!/usr/bin/env octave -q
>>
>> but I get an error
>> /usr/bin/env: octave -q: No such file or directory
>>
>> an old thread says there are no solution
You can write a shell script and put it somewhere:
=============== /usr/local/bin/envoctaveq ==================
#! /bin/sh
exec /usr/bin/env /usr/bin/octave -q "$@"
============================================================
then use this as your first line:
#! /usr/local/bin/envoctaveq
I see that you do not use the -f option to Octave. If this is
intentional or an oversight? Generally speaking, you want 'octave -qf'
for invoking a script.
--
Francesco Potortì (ricercatore) Voice: +39 050 315 3058 (op.2111)
ISTI - Area della ricerca CNR Fax: +39 050 315 2040
via G. Moruzzi 1, I-56124 Pisa Email: address@hidden
(entrance 20, 1st floor, room C71) Web: http://fly.isti.cnr.it/