Please try using the code below. I've just tested and it works:
String fakeCommand = "ping "; fakeCommand += "google.com"; system(fakeCommand.buffer);
Thanks so much.
I managed to use "toCharArray()" method and documented here: http://www.costaricamakers.com/?p=190
I realize though your method is a lot more straight forward, so I'll update my post soon :-)
Do you know if system calls work with shell scripts?
e.g I can do system("curl https://myurl.com") but if i write a shell script containing the same command and call it with system("/home/root/myscript.sh") it just doesn't work!! (I'm sure the script is OK because I can run from linux command line)
To run a shell script you should use the following syntax:
In your case, the system call should be:
Make sure the script is actually in the directory specified.