[Scilab-users] Scilab is not a pipe
Sylvestre Ledru
sylvestre.ledru at scilab-enterprises.com
Tue Feb 26 17:55:23 CET 2013
On 26/02/2013 17:45, Adrien Vogt-Schilb wrote:
> hi
>
> is there any reasons why I can't type from a console:
>
> scilab myfile.sce
It is this way for legacy reasons. We could change that for Scilab 6.
> and expect scilab to execute myfile.sce and redirect output to the
> standard output?
>
> I can almost to that with
> scilab-cli -f
> and
> scilab-cli -e
>
> but i still have to exit manually at the end, or construct an alias ofr
> scilab-cli -e exec('#1');quit
> or something
You can do:
echo "disp(%pi)"|scilab-cli
(note that the multiline is broken in 5.4.0 but works in 5.3.3 and will
work in 5.4.1)
Sylvestre
More information about the users
mailing list