[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: octave & pipes
From: |
Przemek Klosowski |
Subject: |
Re: octave & pipes |
Date: |
Wed, 16 Jul 2008 11:23:13 -0400 (EDT) |
r.m is set to be executable, but if I try to run "./r.m < test.txt"
I get what look like shell errors:
./r.m < test.txt
./r.m: line 2: syntax error near unexpected token `('
./r.m: line 2: `tt = load("-ascii", '-')'
There's some weirdness. On my Linux box and Octave 2.9.8, I have
three executable files:
r.m:
#!/usr/bin/octave -qf
tt = load("-ascii", '-')
s.m:
#!/usr/bin/octave -q -f
tt = load("-ascii", '-')
t.m:
#!/usr/bin/octave -qf
sin(3)
Now, r.m and t.m both work, but s.m doesn't. It seems that -q -f acts
differently
than -qf:
address@hidden tmp]$ ./r.m < test.txt
tt =
..........
address@hidden tmp]$ ./s.m < test.txt
/usr/bin/octave: invalid option --
...
Usage: octave [options]
...
address@hidden tmp]$ ./t.m
ans = 0.14112