I was considering using a pipe based interface such that we could pipe the output out to a fifo that could be read by a while-read-case loop that can output to another fifo that is used for interacting (via input from the fifo)
I know this seems ridiculous to write yet another dialog program, but none of them seem to be simple _and_ versatile.
Code: Select all
mkfifo /tmp/useractions
mkfifo /tmp/scriptactions
sdialog -args... </tmp/scriptactions >/tmp/useractions &
while read LINE; do
case "$LINE" in
...
esac
done </tmp/useractions >/tmp/scriptactions &