gregklanderman wrote: > FWIW you should be able to simplify that loop to > > > Code: -------------------- > > > while ! pigs t >/dev/null 2>&1 ; do > # printf "\nWaiting for pigpiod to initialize\n" > sleep 1 > done > printf "\npigpiod is running\n" > -------------------- > >
Thanks Greg - that's much neater, and works the same way. ------------------------------------------------------------------------ chill's Profile: http://forums.slimdevices.com/member.php?userid=10839 View this thread: http://forums.slimdevices.com/showthread.php?t=111502 _______________________________________________ unix mailing list unix@lists.slimdevices.com http://lists.slimdevices.com/mailman/listinfo/unix