This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
ComputerCraftFan11's profile picture

How to use http/pastebin get in lua?

Started by ComputerCraftFan11, 24 March 2012 - 08:19 PM
ComputerCraftFan11 #1
Posted 24 March 2012 - 09:19 PM
I'm trying to make a downloader but when i do

if fs.exists("rn") then
  shell.run("rn")
else
  shell.run("pastebin get 8dUHPeS1 rn")
  shell.run("rn")
end
It says No such program
Espen #2
Posted 24 March 2012 - 09:25 PM
Does the error occur in the code you just posted or in the code of "rn"?
Can you please post the whole error message?
kamnxt #3
Posted 24 March 2012 - 09:25 PM
Use shell.run("pastebin","get","8dUHPeS1","rn"). Every parameter must be after a comma.
ComputerCraftFan11 #4
Posted 24 March 2012 - 09:28 PM
thanks