[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

newbie questions rsh and open sockets



Hi guys

I am using rsh to execute a command on a remote machine. The command execution happens fine and the method returns perfectly.

However when I use netstat to view the socket connections on the remote machine I see multiple connections opened from the source machine. 

Why does this happen. Shouldnt the socket connections be closed the moment rsh completes the command execution

[root@harry root]# netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 10.210.5.45:shell       10.210.5.71:1017 	TIME_WAIT
tcp        0      0 10.210.5.45:1023        10.210.5.71:1016 	TIME_WAIT

Thanks for your time.
anand



Reply to: