[Top][All Lists]

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


From: Adam
Subject: /dev/tcp/localhost/finger
Date: 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
address@hidden 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.

address@hidden build]$ telnet localhost finger 
Connected to localhost (
Escape character is '^]'.
finger: blah: no such user.
Connection closed by foreign host.
address@hidden 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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]