Hahah Guswut, I saw you on the thread that had the link to the post
http://forum.feed-the-beast.com/threads/turtles.4215/#post-104632
http://forum.feed-the-beast.com/threads/turtles.4215/#post-104632
Here's a question. If I have a few turtles and I want them all to execute the same program, is there a way for me to have that program stored in a central location, and on startup of the turtles they grab it and execute it?
I have 19 melee turtles all in a line, and as I adjust their startup code, I'd be nice to update it in a single place and all the turtles update
pbinCode = '<pastebincodehere>'
progName = '<programnamehere>'
if fs.exists(progName)==true then
fs.delete(progName)
end
shell.run("pastebin", "get "..pbinCode..' '..progName)
shell.run(progName)
I see you figured out a solution, but I implemented something similar for fetching from pastebin which is imho even easier. I actually put it on all of my computers/turtles as 'reload' so that I can easily upload new revisions to pastebin and then fetch them down to the computer. On my melee turles and the like it is set as 'startup' instead obviously. You need to register a pastebin account for full functionality though, so that you can edit the same file and keep the access code the same.
Code:pbinCode = '<pastebincodehere>' progName = '<programnamehere>' if fs.exists(progName)==true then fs.delete(progName) end shell.run("pastebin", "get "..pbinCode..' '..progName) shell.run(progName)
What do you mean by creates a file? Do you mean that it does not support updating a program, but rather simply creating one? If so, you will note I delete the old program if it exists as part of the program. if you mean an actual file on the server... I am looking through my server's world files now, and am not seeing anything of the like (I have executed prob close to 100 pastebin gets at this point). Could you point me to where they are if so, I should prob clear them out.The pastebin idea is nice, but not all servers support it. And... each time you pastebin get it creates a file.
Well what about cc-getI updated my script-a-roo; just bug fixes. What I'd like to add to is make the executed code none blocking(a background process) so that I could add a "update" command so anytime the control's turtle script is altered I can tell the turtles to update