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

Shell.run not able to download pastebin files?

Started by DarkEyeDragon, 13 June 2015 - 01:27 PM
DarkEyeDragon #1
Posted 13 June 2015 - 03:27 PM
So i finally got back into CC after a while. And i wrote a few programs in Singleplayer and uploaded them to pastebin. On the server i am able to call the the scripts manual (so i know its enabled) I tried to write a script to get all the required files from pastebin.


shell.run("pastebin get S7L9Wt test")

I would get the following error:
Connecting to pastebin.com… Failed.

Is this intended and is there a way around it?
Or am i doing something wrong?
Engineer #2
Posted 13 June 2015 - 06:47 PM
This means that the connection has failed to pastebin.com.

This can be either problem:
  • Your internet connection/firewall doesn't allow it (I'd really doubt this but you never know)
  • Your internet connection timed out
So in short, this is a problem at your end, not CC's. Also, since the program pastebin is loaded so you know the http API is enabled.
Creator #3
Posted 13 June 2015 - 09:02 PM
That pastebin is way too short. Have you checked it is correct?
DarkEyeDragon #4
Posted 13 June 2015 - 09:02 PM
This means that the connection has failed to pastebin.com.

This can be either problem:
  • Your internet connection/firewall doesn't allow it (I'd really doubt this but you never know)
  • Your internet connection timed out
So in short, this is a problem at your end, not CC's. Also, since the program pastebin is loaded so you know the http API is enabled.
You didn't read it completly. I said it worked fine when i call it manuall(so using pastebin <idname> <name>)
But it ONLY gives me that error when i use the shell.run(). How would i fix this?
Also if i'm on a server how would my connection have timed out…

That pastebin is way too short. Have you checked it is correct?

Seems like that pastebin has been removed but i tried using sKLqTGrM (and i'm sure that works) and it also returned failed.



here is the code:
Bomb Bloke #5
Posted 14 June 2015 - 01:48 AM
here is the code:

I can't help but notice that that does not say "sKLqTGrM".
DarkEyeDragon #6
Posted 14 June 2015 - 09:06 AM
here is the code:

I can't help but notice that that does not say "sKLqTGrM".

Haha wow… I feel kind of stupid now. I tried with the CORRECT code and guess what… It actually worked. I wonder how I overlooked that problem a thousand times… Its always the little things that you miss. Thanks a lot!