Posted 11 January 2013 - 03:00 PM
Ok so basically, I want to write a simple program that will delete a different program on the computer/turtle, then copy the updated program from a nearby disk.
Essentially I want to write a program for a turtle so I can update a program for an army of turtles without entering a ton of commands.
It would essentially be this:
delete otherProgram
cp disk/otherProgram /
Now, this will work in the console by just typing it in (obviously) but I want to put this in a program so that I can just type the name and it would do the lame repetitive typing for me. I mean, who wants to update the same program on 30 different turtles by hand all the time.
So, if anyone knows how to use console commands inside of a program, that would be very much appreciated!
Essentially I want to write a program for a turtle so I can update a program for an army of turtles without entering a ton of commands.
It would essentially be this:
delete otherProgram
cp disk/otherProgram /
Now, this will work in the console by just typing it in (obviously) but I want to put this in a program so that I can just type the name and it would do the lame repetitive typing for me. I mean, who wants to update the same program on 30 different turtles by hand all the time.
So, if anyone knows how to use console commands inside of a program, that would be very much appreciated!