We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cca2cad commit 11d3718Copy full SHA for 11d3718
conkys_socket.sh
@@ -0,0 +1,3 @@
1
+#! /usr/bin/env bash
2
+
3
+socat TCP-LISTEN:7634,reuseaddr,fork EXEC:./hdd.sh
hdd.sh
@@ -0,0 +1,25 @@
+out="|"
4
5
+cti () {
6
+while read -r neco
7
+do
8
+ read -r temp < <(cat $tmp/$neco/$tmp1 2> /dev/null || continue)
9
+ out="$out$neco|conkys $neco|${temp:0:2}|C||"
10
+done <<<$vystup
11
+}
12
13
14
+tmp=/sys/block
15
+tmp1="device/device/hwmon/*/temp1_input"
16
+vystup=`ls "$tmp" | grep '^nvme'`
17
+cti
18
19
+tmp=/dev/shm/conkys
20
+tmp1=temp
21
+vystup=`ls "$tmp"`
22
23
24
+[ "$out" ] && echo $out
25
0 commit comments