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

pastebin function()

Started by Crowdy199, 24 February 2013 - 03:49 AM
Crowdy199 #1
Posted 24 February 2013 - 04:49 AM
how do i run pastebin get zAyf324j test from the startup code instead of the shell
ChunLing #2
Posted 24 February 2013 - 05:00 AM
You can use shell.run(), or just a modified version of the code in the pastebin program.
remiX #3
Posted 24 February 2013 - 05:17 AM
As ChunLing said, you can use shell.run()

It works as if you were typing it into the shell:

-- open to edit the startup file
edit startup

shell.run('pastebin get zAyf324j file')