summaryrefslogtreecommitdiff
path: root/tests/misc/dev-tcp.tests
blob: 0f3a2281dc6a076ef165f155586af2fc9c3ddb0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
exec 9<>/dev/tcp/129.22.8.162/25

read banner <&9
echo "$banner"

echo quit >&9

read msg <&9
echo "$msg"

exec 9<&-

# nifty date command that queries the date/time server
cat < /dev/tcp/129.22.8.102/13

exit 0