14c8945a0SNathan Whitehorn#!/bin/sh 2*a96ef450SBaptiste Daroussin# $Id: tailboxbg,v 1.11 2019/12/11 01:21:36 tom Exp $ 34c8945a0SNathan Whitehorn 44c8945a0SNathan Whitehorn. ./setup-vars 54c8945a0SNathan Whitehorn 64c8945a0SNathan Whitehorn. ./setup-tempfile 74c8945a0SNathan Whitehorn 84c8945a0SNathan Whitehorn./killall listing 94c8945a0SNathan Whitehorn./listing >listing.out & 104c8945a0SNathan Whitehorn 114c8945a0SNathan Whitehorn$DIALOG --title "TAIL BOX" \ 124c8945a0SNathan Whitehorn --no-kill "$@" \ 134c8945a0SNathan Whitehorn --tailboxbg listing.out 24 70 2>$tempfile 144c8945a0SNathan Whitehorn 154c8945a0SNathan Whitehorn# wait a while for the background process to run 164c8945a0SNathan Whitehornsleep 10 174c8945a0SNathan Whitehorn 184c8945a0SNathan Whitehorn# now kill it 19*a96ef450SBaptiste Daroussinkill "-$SIG_QUIT" "`cat "$tempfile"`" 2>&1 >/dev/null 2>/dev/null 204c8945a0SNathan Whitehorn 214c8945a0SNathan Whitehorn# ...and the process that is making the listing 224c8945a0SNathan Whitehorn./killall listing 23