[nylug-talk] dig weird behavior

Frank D. Greco
Wed Sep 27 23:44:25 EDT 2006


I wrote a small bash script (on RH AS3) that looped through a set of 
hostnames and used dig to find aliases (etc), i.e.,

	for i in $HOSTS
	do
		dig ... | grep ...
	done

Worked fine as expected.  But since my $HOSTS has been getting quite 
large, I attempted to parallelize the guts of the loop:

	for i in $HOSTS
	do
		dig ... | grep ... > $TMPDIR/$i   &
	done

	wait
	cat $TMPDIR/* | sort

Surprisingly, this hung.  When I checked my $TMPDIR, all the files 
were created, but some were 0 bytes.  When I hit CTRL-C on this script,
I got some odd error about sockcount == 0 from dig.c

Anyone know what's going on here?

Thanks,

Frank G.
--
+==============================================+
| Crossroads Technologies Inc.                 |
| www.CrossroadsTech dot com                   |
| fgreco at REMOVEtheX!cross!roads!tech!dotXcom|
+==============================================+
--



More information about the nylug-talk mailing list