9 posts
Posted 14 April 2012 - 02:46 AM
I setup a program for a mining turtle, and I want to move it to other mining turtles using a floppy disk, but im having issues finding out exacly what to put into the console to make it copy the program onto another computer
1111 posts
Location
Portland OR
Posted 14 April 2012 - 02:56 AM
to copy from a disk to a computer you will want to do something like
fs.copy("disk/progamName", "progamName")
9 posts
Posted 14 April 2012 - 03:02 AM
Odd, now when i try to copy data onto a disk it says access denied, im doing
copy program disk
1111 posts
Location
Portland OR
Posted 14 April 2012 - 03:07 AM
You should just be able to reverse the copy from disk -> computer.
just make sure you are using the absolute path of the program. So if its in a directory named say home you would do
fs.copy("/home/programName", "disk/programName")
9 posts
Posted 14 April 2012 - 03:09 AM
still getting acess denied
2447 posts
Posted 14 April 2012 - 07:27 PM
Try
fs.copy("/home/programName", "/disk/programName")
If that doesn't work, disk folder might not exist.
1604 posts
Posted 14 April 2012 - 08:28 PM
If it's from a program, do like says above. If it's from the terminal, type: copy path/to/program disk/programName
If that doesn't work, you don't have a disk in the drive or it's not the first disk. Use ls to check if the disk folder exists:
> ls
rom disk someProgram
If disk is not in the list, but there's another disk (like disk2 or disk3) replace disk on the copy command to that disk.