[scilab-Users] Piping output of a program to a scilab script

Sylvestre Ledru sylvestre.ledru at scilab-enterprises.com
Wed May 9 22:30:56 CEST 2012


On 04/05/2012 12:39, Mathieu Dubois wrote:
> Hello,
>
> I would like to know if it's possible to use scilab in a standard UNIX
> pipeline.
>
> I have some programs that output their results to stdout and I would
> like to read it from scilab.
>
> I know I can launch scilab in batch mode with "-nb -nwni" and execute
> a command with-e.
With 5.3.3 (and the current nightly), the following cases are working:
$ echo "a=1+%pi; disp(a)"|scilab-cli
 
$ echo "a=1+%pi; disp(a)" > plop.sci && cat plop.sci |scilab-cli

Sylvestre




More information about the users mailing list