gharris999;591525 Wrote: > Yeah...I don't know why, but on my Fedora 12 box running SBS 7.6 from > the svn code, this: > > # echo 'players' | nc -w1 127.0.0.1 9090 > > ..produces no output. But this: > > # nc -w1 127.0.0.1 9090 <<EOF > players > exit > EOF > # > > ..produces: > > players count%3A2 > > I'm mystified.
The "here document" is feeding two lines to nc while your echo/pipe is feeding only one. If you want to duplicate with the pipe what you fed with the heredoc then you need to do something like: printf "players\nexit\n" | nc... -- ncarver ------------------------------------------------------------------------ ncarver's Profile: http://forums.slimdevices.com/member.php?userid=15905 View this thread: http://forums.slimdevices.com/showthread.php?t=83539 _______________________________________________ unix mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/unix
