Tue, May 30, 2023 at 05:29:23PM +0800, Kent Gibson kirjoitti: > On Mon, May 29, 2023 at 08:20:44PM +0000, Gabriel Matni wrote: > > From: Gabriel Matni <gabriel.matni@xxxxxxxx> ... > My preferred solution is to run gpiomon as a coproc and have the > controlling script perform the timeout. e.g. > > #!/bin/env bash Oh, this is too bad. > coproc gpiomon "$@" > while : > do > read -t5 -u ${COPROC[0]} event || break > echo $event > done > kill $COPROC_PID I'm wondering what coproc is and why it requires bash. What I want to have and keep that working is that all our tools can be run in Busybox environment (embedded application). That's why I'm against seeing bash in any form of the tooling. -- With Best Regards, Andy Shevchenko