[PLUG] ksh?

Dan adelmand@purdue.edu
Mon, 16 Apr 2001 01:25:32 -0500


So I have this piece of ksh code:
####
exec 3<> /dev/tcp/216.128.62.135/80

print -u3 'GET /guide/whats_on.asp?genre_id=6&channel_id=38'

while read -u3 line
do
 print "$line"
done 
####
What's supposed to happen is this:  It opens input/output #3, prints the
specified line to I/O #3, then gets the response one line at a time.  This
works perfectly on csociety and other linux boxes with ksh but is broken on
expert and other machines using dtksh.  It appears that the position
indicator is not incremented, as I just get an infinite number of "HTTP/1.1
200 OK" instead of the file...

Dan