source:
vendor/bash/3.1-p17/tests/misc/dev-tcp.tests
Last change on this file was 3228, checked in by , 18 years ago | |
---|---|
File size: 212 bytes |
Line | |
---|---|
1 | exec 9<>/dev/tcp/129.22.8.162/25 |
2 | |
3 | read banner <&9 |
4 | echo "$banner" |
5 | |
6 | echo quit >&9 |
7 | |
8 | read msg <&9 |
9 | echo "$msg" |
10 | |
11 | exec 9<&- |
12 | |
13 | # nifty date command that queries the date/time server |
14 | cat < /dev/tcp/129.22.8.102/13 |
15 | |
16 | exit 0 |
Note:
See TracBrowser
for help on using the repository browser.