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

Archived

This topic is now archived and is closed to further replies.

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 New...

Important Information

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