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

[Question][Lua]

Started by roflbobl, 13 January 2013 - 04:24 AM
roflbobl #1
Posted 13 January 2013 - 05:24 AM
Hey!

I got this problem! Its very simple i think, just cant figure it out!

I made a simple program om the computer and saved it to a disk. How do i transfer this program to my miningturtle?

Thanks you!
W00dyR #2
Posted 13 January 2013 - 05:25 AM
use the program

cp <program> <location it has to go to>
roflbobl #3
Posted 13 January 2013 - 05:28 AM
use the program

cp <program> <location it has to go to>
What do you mean by "<location it has to go to>" ?
remiX #4
Posted 13 January 2013 - 05:35 AM
Put them turtle next to a disk drive with the disk it in and type:


cp disk/<theProgramName> <newName>

theProgramName must be the name of the program on the disk, and newName is the name it will become on the turtle
W00dyR #5
Posted 13 January 2013 - 05:40 AM
use the program

cp <program> <location it has to go to>
What do you mean by "<location it has to go to>" ?

The program "cp" copies files, location it has to go to means like, the name, including folders if you want that etc, so if you copy something to a disk and want to name it awesome, you have to type in disk/awesome , if you want it to be just named awesome, copied to a different thing, type "awesome" only etc
roflbobl #6
Posted 13 January 2013 - 05:43 AM
Put them turtle next to a disk drive with the disk it in and type:


cp disk/<theProgramName> <newName>

theProgramName must be the name of the program on the disk, and newName is the name it will become on the turtle
Thanks!

use the program

cp <program> <location it has to go to>
What do you mean by "<location it has to go to>" ?

The program "cp" copies files, location it has to go to means like, the name, including folders if you want that etc, so if you copy something to a disk and want to name it awesome, you have to type in disk/awesome , if you want it to be just named awesome, copied to a different thing, type "awesome" only etc
Thanks!