freebsd-src/contrib/dialog/samples/tailboxbg

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

23 lines
449 B
Plaintext
Raw Normal View History

2011-01-13 02:21:23 +00:00
#!/bin/sh
# $Id: tailboxbg,v 1.11 2019/12/11 01:21:36 tom Exp $
2011-01-13 02:21:23 +00:00
. ./setup-vars
. ./setup-tempfile
./killall listing
./listing >listing.out &
$DIALOG --title "TAIL BOX" \
--no-kill "$@" \
--tailboxbg listing.out 24 70 2>$tempfile
# wait a while for the background process to run
sleep 10
# now kill it
kill "-$SIG_QUIT" "`cat "$tempfile"`" 2>&1 >/dev/null 2>/dev/null
2011-01-13 02:21:23 +00:00
# ...and the process that is making the listing
./killall listing