So here is the code
function shllinout(some::ASCIIString)
rd,wr = redirect_stdout()
open (`sed 's/666//g'`,"w",STDOUT) do iob
println (iob,some)
end
eof(rd)
close(rd)
outoff = readall (rd)
redirect_stdout (STDOUT)
return outoff
end
if sizeof(some) < ~50000 fct() works and return what I am expecting
if the variable some is more than 100KB the code hang in the println().
I tried reducing the size of the write to iob and flushing regularly but no
success!
So my question is is there some kind of limitation on the size that can be
written to a shell cmd?
Thxs,
-Eric
PS:
*julia> **versioninfo()*
Julia Version 0.3.5
Commit a05f87b* (2015-01-08 22:33 UTC)
Platform Info:
System: Darwin (x86_64-apple-darwin13.4.0)
CPU: Intel(R) Core(TM) i7-4650U CPU @ 1.70GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas
LIBM: libopenlibm
LLVM: libLLVM-3.3