+bin/nn
authorJan Kratochvil <jan@jankratochvil.net>
Thu, 11 Apr 2024 08:28:35 +0000 (16:28 +0800)
committerJan Kratochvil <jan@jankratochvil.net>
Thu, 11 Apr 2024 08:28:35 +0000 (16:28 +0800)
bin/nn [new file with mode: 0755]

diff --git a/bin/nn b/bin/nn
new file mode 100755 (executable)
index 0000000..d8ce7f4
--- /dev/null
+++ b/bin/nn
@@ -0,0 +1,9 @@
+#! /bin/sh
+if [ -z "$*" ];then
+  echo >&2 "No PID"
+elif [ "$1" = "-p" ];then
+  shift
+  exec chrt -i -p 0 "$@"
+else
+  exec chrt -i 0 "$@"
+fi