The difference with the addParameter is that it does not escape characters. But that is no issue at all.
The clumsy code has just become:
p.runShellCommand("date > /mnt/sda1/arduino/time.txt"); p.runShellCommand("curl -T /mnt/sda1/arduino/time.txt ftp://username:password@webpage/ -a");
No comments:
Post a Comment