Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
DarkPikachu

Download and execute a script from copy.com

Recommended Posts

for those of you who want to use your favorite IDE, this script was designed so you could:

1) save your script from Sublime Text (or whatever IDE you use)

2) wait a few seconds for copy to update the file

3) reboot your PC, server, robot, drone, etc.

 

the script will read the contents of your copy script from the (supplied) URL and dynamically execute the script while booting the device.

 

script:

local net = require("internet")
 
local url = "https://copy.com/RyWyWEm8DCRzoKSt"  -- edit with your script's shared link
 
local script = ""
for line in net.request(url.."?download=1") do script=script..line end
 
load(script)()
EDIT:

this currently only works as a script execution, it does not work on an EEPROM.

I'm looking into the code for TitanBios to see if I can get this working.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.