You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm looking into script what's going on there and I'm little concerned about multi-account handling. I have no way how to test this, but
"while true loop" inside "for loop" at the end of tado-assistant.sh seems to be stuck in first iteration.
Minimal working example should look sth like this:
#!/bin/bash
# this makes background subshells to terminate - at least on ctrl-c
trap "kill 0" EXIT
for (( i=1; i<=2; i++ )); do
# spawns subshell on background
(
while true; do
echo "here $i"
sleep 2
done
) &
done
# waits for subshells to terminate, otherwise main scripts exits right away
wait
Tested on rpi-zero-w latest 6.6.51+rpt-rpi-v6 GNU bash, version 5.2.15(1)-release
Thx for reply
The text was updated successfully, but these errors were encountered:
Hi,
I'm looking into script what's going on there and I'm little concerned about multi-account handling. I have no way how to test this, but
"while true loop" inside "for loop" at the end of tado-assistant.sh seems to be stuck in first iteration.
Minimal working example should look sth like this:
Tested on rpi-zero-w latest 6.6.51+rpt-rpi-v6 GNU bash, version 5.2.15(1)-release
Thx for reply
The text was updated successfully, but these errors were encountered: