hey !
Wrote a very simple arduino sketch which uses Process to communicae with linino.
The arduino sketch is as follows.
#include <Process.h>
void setup() {
Bridge.begin(); // Initialize the Bridge
Process p;
p.runShellCommand("/root/run.sh");
while (p.running()){ ; }
while (p.available()) { ; }
delay(5000);
}
void loop()
{
}
run.sh is as follows
#! /bin/sh
touch touched
When I run /root/r.sh , touched is created.
But when I uploaded the sketch to arduino it did not work.
In one of the previous thread, a user had the ame problem, and the solution was to change the permissions.
I did change the permissions of run.sh using
chmod 755 run.sh
Still no results.
Would be grateful to you if you can help me out.