[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Sun, 13 May 2001 17:24:41 -0400
I was playing with the new feature of Bash 2.05 which
allows to redirect data to sockets. Fair enough I did
not have too much trouble with 'daytime port'
address@hidden build]$ cat < /dev/tcp/localhost/daytime
Sun May 13 17:00:22 2001
However, I have trouble to get output of finger port.
In order to get output I need to input either <CR> or
address@hidden build]$ telnet localhost finger
Connected to localhost (127.0.0.1).
Escape character is '^]'.
finger: blah: no such user.
Connection closed by foreign host.
However, I can't get it to work with bash.
(and what would be the syntax for that matter)
cmd < file.in > file.out
is to operate on one command, not a file which might
"automagically" change intput (like socket).
echo hi | cat < /dev/tcp/localhost/finger
does not seem to do trick, like few other commands