[Scilab-users] Running external program
Samuel Gougeon
sgougeon at free.fr
Thu Dec 3 19:14:02 CET 2015
Le 03/12/2015 17:47, Dang Ngoc Chan, Christophe a écrit :
> Hello,
>
>> De : Lester Anderson
>> Envoyé : jeudi 3 décembre 2015 16:56
>>
>> dos('grdinfo FAA.grd -C | gawk "{nx=$10; ny=$11}; {print nx, ny}" >
>> nxy.txt','-echo')
>> !--error 3 Waiting for right parenthesis.
> In some cases, you need to use two quotes to tell that you want the character quote and that it is not the end of the string.
>
> Don't know if it applies here, but maybe you could try.
Yes indeed, it is clearly a problem here. In Scilab 5, a string started
with " can be terminated with ' , and vice-versa. This tolerance is no
longer accepted with Scilab 6.
So here,
dos('grdinfo FAA.grd -C | gawk ""{nx=$10; ny=$11}; {print nx, ny}"" > nxy.txt','-echo')
must be used.
Samuel Gougeon
More information about the users
mailing list