Jump to content




Download a file.


  • You cannot reply to this topic
2 replies to this topic

#1 CRUGG

  • Members
  • 26 posts
  • Locationpropably in front of his PC

Posted 26 March 2018 - 04:33 PM

How do I code it that a script downloads for e.g. the file on http://myco.oldoma.i...files/myprogram to /usr/bin/ on the ComputerCraft PC.

Don't tell me 'shell.run("wget ...")' as the script should be compatible with 1.7.10 too.

#2 RR_DEADPOOL

  • Members
  • 15 posts

Posted 06 April 2018 - 12:25 PM

upload it to pastebin and take the random bits that will look like "6dn2x83" and do "pastebin get 6dn2x83 <filename> so...

pastebin get 6dn2x83 testfile

that 7digit code is just random btw

#3 Luca_S

  • Members
  • 407 posts
  • LocationGermany

Posted 06 April 2018 - 05:44 PM

It might be helpful for you to take a look at the source of wget.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users