System.cmd truncating output of shell script

I have a shell script that generates a large amount of data.

When I call System.cmd the result is truncated. I get the first 1000 or so char and and then it ends the string with ‘<> …’.

How do I get System.cmd to return everything?

You do get everything, the truncation is only to keep the output small and avoid flooding the terminal. When you IO.puts the returned string, you will see it completely.

2 Likes

So it seems. Thank you. I will write that day off to sleep deprivation.

1 Like