source:
trunk/essentials/app-shells/bash/tests/misc/dev-tcp.tests@
3230
| Last change on this file since 3230 was 3228, checked in by , 19 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.
