11 lines
144 B
Bash
Executable file
11 lines
144 B
Bash
Executable file
#!/bin/bash
|
|
|
|
HOST=127.0.0.1
|
|
PORT=31337
|
|
|
|
if [ $# -eq 0 ]; then
|
|
echo "Usage: $0 <message>..."
|
|
exit
|
|
fi
|
|
|
|
echo "$*" | nc -w3 "$HOST" "$PORT"
|