• Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Welcome to OpenComputers

Register now to gain access to all of our features. Once registered and logged in, you will be able to contribute to this site by submitting your own content or replying to existing content. You'll be able to customize your profile, receive reputation points as a reward for submitting content, while also communicating with other members via your own private inbox, plus much more!

This message will be removed once you have signed in.

  • Announcements

    • Lizzy Trickster

      Latest Stable OpenComputers Version   11/26/16

      The latest released version of OpenComputers is version 1.6.1 for MC 1.7.10, 1.8.9, 1.9.4 & 1.10.2. See more information here! Beta/Dev builds can be found at the Jenkins Build Server (ci.cil.li)
Sign in to follow this  
Followers 0
feldim2425

Download and upload programs

3 posts in this topic

Just a short tutorial on how to download programs from the internet.

 

You need... 

 

*) Computer (min. tier 2 case)

*) Internet Card

*) Disk or a Hard Drive (to store the file)

 

Make sure that HTTP is enabled in the config!!! (default enabled)

 

Download from Pastebin

The OC pastebin program works like the program from CC.

 

pastebin get [-f] <pastebin code> <path to the new file + filename> -- without path it will store the file in the current work directory

 

-f  (optional) overwrites a existing file

 

example:

pastebin get G61bgv29 hello.lua   --stores hello.lua in the current work directory

pastebin get G61bgv29 /bin/hello.lua   --stores hello.lua in /bin folder

Download with wget

If you want to download a program from Github or another Website you can use wget.

 

wget [-f] <download url> <path to the new file + filename> -- without path it will store the file in the current work directory

 

-f  (optional) overwrites a existing file 

 

example ( I used a pastebin url):

wget  'http://pastebin.com/download.php?i=G61bgv29'  /bin/hello.lua  ----stores hello.lua in /bin folder

Upload to Pastebin

It is also possible to upload files to pastebin.

 

pastebin put <path to file>

 

it will output:

/# pastebin put <path>
Uploading to pastebin.com... success.
Uploaded as http://pastebin.com/<Pastebin ID>
Run "pastebin get <Pastebin ID>" to download anywhere.
/#

Share this post


Link to post
Share on other sites

You can't download directories.

I checked the Pastebin API and it doesn't look like they added directories to the API.

And 'wget' uses the same download as your browser does and this method doesn't support downloading folders.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0