I've got a big stupid problem and I need to solve [u]today[/u] for our project at MakerFaire Torino: we will expose tomorrow... so if anyone can help it will be appreciated and I will start with all of my love, than beer, presents, goods, and so on! ;) And if you will be in Turin, tomorrow, yes, I will give you really!!! XD XD
So, the problem: I need to send a file (anemoPark.csv) to a mySQL database on AlterVista, if I write the command in a shell inside Linino
curl -F file=@anemoPark.csv http://xxxxxxxxxxx.altervista.org/samplesload/filetodb.php
it works like a charme
if I insert this in an Arduino sketch, like this
p.runShellCommandAsynchronously("curl -F file=@anemoPark.csv http://xxxxxxxxxxx.altervista.org/samplesload/filetodb.php");
it doesn't work anymore, even if I use a test sketch without anything else than this command (and related declarations, obviously). I also tried runShellCommand instead of runShellCommandAsynchronously, same failure no result.
I'm going slightly mad! if it works inside Linino shell why doesn't it work inside an Arduino sketch? same command, same sintax!
Is a Process related problem?
please help me as soon as possibile!
EDIT some more information about curl -F here: http://curl.haxx.se/docs/manpage.html