Hello,
I've got a sketch that is calling a bash script via the runShellCommand() function. While parameters are passed successfully to simple scripts, I've not had any luck getting my bash script's results to pass back to my Arduino sketch. To help answer questions I have already covered, you can see my Adafruit support thread here:
http://forums.adafruit.com/viewtopic.php?f=25&t=50349
When run from an ssh terminal on the Yun, my script accepts all my parameters and returns the proper integer to the shell. When I call the same script from the runShellCommand function, it always returns a "0". My script makes use of the "bc" program to perform complex math, and my script does call other scripts.
Any ideas on how to get my sketch to get the proper result back from my shell script?