[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
/dev/tcp/localhost/finger
From: |
Adam |
Subject: |
/dev/tcp/localhost/finger |
Date: |
Sun, 13 May 2001 17:24:41 -0400 |
Hello,
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'
[adam@pepsi build]$ cat < /dev/tcp/localhost/daytime
Sun May 13 17:00:22 2001
^C
[adam@pepsi build]$
However, I have trouble to get output of finger port.
In order to get output I need to input either <CR> or
user name.
[adam@pepsi build]$ telnet localhost finger
Trying 127.0.0.1...
Connected to localhost (127.0.0.1).
Escape character is '^]'.
blah
finger: blah: no such user.
Connection closed by foreign host.
[adam@pepsi build]$
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
I tried.
suggestions?
- /dev/tcp/localhost/finger,
Adam <=