This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
Jaloman's profile picture

[Question] Turtle - Computer interaction

Started by Jaloman, 20 January 2013 - 10:22 AM
Jaloman #1
Posted 20 January 2013 - 11:22 AM
Hey Pros,

at the moment I'm trying to make some kind of GPS-tower-builder-turtle, similar to this one in this video:

http://www.youtube.com/watch?v=fLR_tgXiq7Q

I'm stuck at making the turtle copying the GPS host program from the floppy to the computer.
I already messed around with the peripherals API, but it seems that I only got the possibility to start, restart and shutdown the computer.
Of course this would be possibile via rednet, but that would require me to write kinda receiver-program on the computer, wouldn't it?

Is there is simple "out of the box" method of simply invoke "copy /disk/gps startup" on the computer with the turtle?

Thanks for your thoughts in advance.
theoriginalbit #2
Posted 20 January 2013 - 11:31 AM
dont have the turtle turn on the computer right away, have it place the disk drive and place a disk in, then have a file on the disk called 'startup'… have this file use do this
fs.copy( "/disk/gps", "/startup" )
then have the turtle turn on the computer, the computer will run the startup, copy the file and then your turtle can take back its disk and drive and move on to the next computer…
Jaloman #3
Posted 20 January 2013 - 01:01 PM
Thank you for that, did the trick for me!
ChunLing #4
Posted 20 January 2013 - 05:52 PM
Heh? You didn't need to get it to then run the new startup somehow?