6 lines
194 B
Bash
Executable file
6 lines
194 B
Bash
Executable file
#!/bin/bash
|
|
exec 2>&1
|
|
if [ -a /tmp/json_socket ]; then
|
|
rm -f /tmp/json_socket
|
|
fi
|
|
exec chpst -P /bin/sh -c '/usr/bin/stdbuf -oL /usr/bin/meas_json | ncat -l -U /tmp/json_socket -k --send-only'
|