summaryrefslogtreecommitdiff
path: root/nocompile/bin
diff options
context:
space:
mode:
Diffstat (limited to 'nocompile/bin')
-rwxr-xr-xnocompile/bin/ident.sh2
-rwxr-xr-xnocompile/bin/ident_service.sh2
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'