Monday, October 21, 2013

runShellCommand

I just learned that there exists a runShellCommand as well :-)

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