Issue with output redirection

Hi,

I am using AIX server. I have a korn shell script where in I am redirecting a line to a file in a while loop:

while read line
do
     outputline=$line;
     echo $outputline >> "./temp/exec_list_"$ETL_JOB_RUN"_temp"
done < ./temp/exec_list_$ETL_JOB_RUN

Sometimes, when the CPU usage goes upto 99%, the command "echo $outputline >> "./temp/exec_list_"$ETL_JOB_RUN"_temp"" does not work and skips to the next step. I think, the writer process is slower than the reader process or we'll have to increase the pipe size.

Any suggestions how this can be achieved?

Is it possible that your "input" file contains metacharacters, which is being interpreted in you "echo" command...???

while read line
do
    print -- "$line" >> ./temp/exec_list_${ETL_JOB_RUN}_temp
done < ./temp/exec_list_${ETL_JOB_RUN}