7 lines
151 B
Bash
7 lines
151 B
Bash
|
#!/bin/sh
|
||
|
PORT="$1"
|
||
|
LOG="log.txt"
|
||
|
[ -z "$1" ] && echo "port?" && exit
|
||
|
echo "log server listening on $PORT" >> $LOG
|
||
|
nc -w1 -W1 -vlkp $PORT >> $LOG 2>&1
|