I have the small script below to check if audio is in use on my Android.
if grep -q RUNNING /proc/asound/card*/pcm*/sub*/status; then echo "Playing" ; else echo "Idle"; fi
It works nicely in the console. However, if I execute it in Tasker it always returns "Playing" which means it always evaluates to true.
Anybody an idea why this is happening?