I try to run the following script, but the second section doesn't work. I guess I can't use the exec < $home/bin.types repeatly. I know I can use different file descriptor, but how if I want to use it again?

Thanks
Jirong


cd Doc
exec < $home/bin.types
while read line
do
cleartool find . -element "eltype ($line)" -print >> $home/bin_file_Doc.out
done
cd ..

cd enp_cygmon
exec < $home/bin.types
while read line
do
cleartool find . -element "eltype ($line)" -print >> $home/bin_file_enp_cygmon.out
done
cd ..