dvtm-status 255 B

1234567891011121314151617
  1. #!/bin/sh
  2. FIFO="/tmp/dvtm-status.$$"
  3. [ -p "$FIFO" ] || mkfifo -m 600 "$FIFO" || exit 1
  4. while true; do
  5. date +%H:%M
  6. sleep 60
  7. done > "$FIFO" &
  8. STATUS_PID=$!
  9. dvtm -s "$FIFO" "$@" 2> /dev/null
  10. kill $STATUS_PID
  11. wait $STATUS_PID 2> /dev/null
  12. rm -f "$FIFO"