Results 1 to 1 of 1
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 ...
- 09-05-2008 #1Just Joined!
- Join Date
- Aug 2008
- Posts
- 18
How can I use the same FD again and again?
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 ..


Reply With Quote