I am getting an error:
couldn't execute "echo": argument list too long
while executing
"exec echo RES_local="$RES" >> $out_file"
(file "./test.tcl" line 1177)
So with exec in this case I am invoking a subprocess - bash echo command and writing to $out_file.
I understand that this is because $RES is too big and ARG_MAX on my system is too small for echo command to execute.
Can anyone suggest how to overcome this problem please?
P.s. I do not want to trim the variable
couldn't execute "echo": argument list too long
while executing
"exec echo RES_local="$RES" >> $out_file"
(file "./test.tcl" line 1177)
So with exec in this case I am invoking a subprocess - bash echo command and writing to $out_file.
I understand that this is because $RES is too big and ARG_MAX on my system is too small for echo command to execute.
Can anyone suggest how to overcome this problem please?
P.s. I do not want to trim the variable