Pastebin (program)

From ComputerCraft Wiki
Jump to: navigation, search

pastebin is a program available on all ComputerCraft systems since mod version 1.31. It makes use of the http API to connect to, as the name implies, the Pastebin website (the script is hidden if said API is disabled in ComputerCraft.cfg). It can be used to either download and save scripts, run them on the fly, or upload them to the pastebin servers.


Grid paper.png  Example
Download the code under Pastebin id WmFHmuZq and save it as 'LyqydOS'.
Code
pastebin get WmFHmuZq LyqydOS



Grid paper.png  Example
Upload the program 'test3' to Pastebin. It will print a Pastebin id into the chat which can then be used to access it later, either from the browser or the pastebin program.
Code
pastebin put test3



Grid paper.png  Example
Download the code under Pastebin id WmFHmuZq, run it and then delete the downloaded file. (Useful for installers.)
Code
pastebin run WmFHmuZq