~kaction/dvtm

ref: 68d08a5ba688c7a74a7ba6e1b7d87bcaa1374ab5 dvtm/dvtm-status -rwxr-xr-x 255 bytes
68d08a5b — Dmitry Bogatov Release 0.15.1 10 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

FIFO="/tmp/dvtm-status.$$"

[ -p "$FIFO" ] || mkfifo -m 600 "$FIFO" || exit 1

while true; do
	date +%H:%M
	sleep 60
done > "$FIFO" &

STATUS_PID=$!
dvtm -s "$FIFO" "$@" 2> /dev/null
kill $STATUS_PID
wait $STATUS_PID 2> /dev/null
rm -f "$FIFO"