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

    • Lizzy Trickster

      Latest Stable OpenComputers Version   11/26/16

      The latest released version of OpenComputers is version 1.7.1 for MC 1.7.10, 1.10.2, 1.11.2 & 1.12.1. See more information here! Beta/Dev builds can be found at the Jenkins Build Server (ci.cil.li)
    • Lizzy Trickster

      !!FORUM DOWNTIME!!   01/16/18

      On 2018-01-27 the forums will be going down at around 1100 GMT0 for up-to 5 hours to allow for hardware configuration changes on the system that hosts these forums as well as various updates to patch recently publicised CPU vulnerabilities. Apologies for the inconvenience that this will cause.  If you would like to keep up-to-date on the progress of the work, join our IRC channel (http://webchat.esper.net/?nick=&channels=oc) or our Discord ( https://discord.gg/0hVukoQ2KYifZFCA ).
Sign in to follow this  
feldim2425

Download and upload programs

Recommended Posts

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  

×