#!/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'