diff options
Diffstat (limited to 'nocompile')
-rwxr-xr-x | nocompile/bin/ident.sh | 2 | ||||
-rwxr-xr-x | nocompile/bin/ident_service.sh | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/nocompile/bin/ident.sh b/nocompile/bin/ident.sh index 5a44253..a4827c4 100755 --- a/nocompile/bin/ident.sh +++ b/nocompile/bin/ident.sh @@ -1,2 +1,2 @@ #!/bin/sh -printf "$2 , $3\r\n" | nc $1 113 | tr -d '\r' +printf "%s , %s\r\n" "$2" "$3" | nc "$1" 113 | tr -d '\r' diff --git a/nocompile/bin/ident_service.sh b/nocompile/bin/ident_service.sh new file mode 100755 index 0000000..a77687a --- /dev/null +++ b/nocompile/bin/ident_service.sh @@ -0,0 +1,2 @@ +#!/bin/sh +ncat "$1" "$2" -c 'ident.sh '"$1"' '"$2"' $(/usr/local/libexec/sockip 3 | tail -n1) 1>&2' |