The Doctor (@drwho@hackers.town)
Does anyone know of a good tutorial for scripting with the ash shell (which is also part of Busybox)? I'm working on re-implementing the autonomous bits of my System Bot as a shell script becuase most OpenWRT devices don't have enough space for a full Python 3 install. What I'm having trouble with is using a list (a string with a known delimeter (CSV, here)) to store the last couple of numerical metrics gathered. That was relatively easy. What hasn't been is that I need those lists to persist outside of the function that measures the system load. No matter what nothing gets added to the string/list, and the calculated length of the list never changes. Should I bite the bullet and assume that bash is present? Or am I missing something?