tailboxbg revision 217309
1217309Snwhitehorn#!/bin/sh 2217309Snwhitehorn# $Id: tailboxbg,v 1.9 2010/01/13 10:20:03 tom Exp $ 3217309Snwhitehorn 4217309Snwhitehorn. ./setup-vars 5217309Snwhitehorn 6217309Snwhitehorn. ./setup-tempfile 7217309Snwhitehorn 8217309Snwhitehorn./killall listing 9217309Snwhitehorn./listing >listing.out & 10217309Snwhitehorn 11217309Snwhitehorn$DIALOG --title "TAIL BOX" \ 12217309Snwhitehorn --no-kill "$@" \ 13217309Snwhitehorn --tailboxbg listing.out 24 70 2>$tempfile 14217309Snwhitehorn 15217309Snwhitehorn# wait a while for the background process to run 16217309Snwhitehornsleep 10 17217309Snwhitehorn 18217309Snwhitehorn# now kill it 19217309Snwhitehornkill -3 `cat $tempfile` 2>&1 >/dev/null 2>/dev/null 20217309Snwhitehorn 21217309Snwhitehorn# ...and the process that is making the listing 22217309Snwhitehorn./killall listing 23