Re: [Scilab-users] Redirecting the console output into a file

2017-01-14 Thread Serge Steer

Sorry , forgot my answer, I read your mail too quickly...
Serge
On 14/01/2017 15:50, Samuel Gougeon wrote:

Hello,

I am wondering if there is any way to temporarily redirect the console 
output into a file.
I mean, not copying the stream as diary() does, but getting in a file 
the contents that are usually displayed, without displaying them.


I tried to change %io(2) with the id of a file opened with mopen(). 
Even when unprotecting %io with predef("clear") before changing 
%io(2), it does not work.


The best i did up to now is using diary, and then using clc(n) to 
clear the displayed contents.

But it is an awful (and slow) solution.

Any hint would be appreciated
Regards
Samuel Gougeon



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Redirecting the console output into a file

2017-01-14 Thread Serge Steer

You can use the diary function...
Serge


On 14/01/2017 15:50, Samuel Gougeon wrote:

Hello,

I am wondering if there is any way to temporarily redirect the console 
output into a file.
I mean, not copying the stream as diary() does, but getting in a file 
the contents that are usually displayed, without displaying them.


I tried to change %io(2) with the id of a file opened with mopen(). 
Even when unprotecting %io with predef("clear") before changing 
%io(2), it does not work.


The best i did up to now is using diary, and then using clc(n) to 
clear the displayed contents.

But it is an awful (and slow) solution.

Any hint would be appreciated
Regards
Samuel Gougeon



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users



___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Redirecting the console output into a file

2017-01-14 Thread Samuel Gougeon

Hello,

I am wondering if there is any way to temporarily redirect the console 
output into a file.
I mean, not copying the stream as diary() does, but getting in a file 
the contents that are usually displayed, without displaying them.


I tried to change %io(2) with the id of a file opened with mopen(). Even 
when unprotecting %io with predef("clear") before changing %io(2), it 
does not work.


The best i did up to now is using diary, and then using clc(n) to clear 
the displayed contents.

But it is an awful (and slow) solution.

Any hint would be appreciated
Regards
Samuel Gougeon

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users