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

question about pastebin

Started by jziel98, 28 July 2012 - 06:20 PM
jziel98 #1
Posted 28 July 2012 - 08:20 PM
i have searched the website and can not find anything about how to paste a script into the computer on a server.
Tiin57 #2
Posted 28 July 2012 - 08:32 PM
What? To put code from a computer onto pastebin is this:

pastebin put <filename>
and to get it is

pastebin get <pastebin code> <saveas name>
jziel98 #3
Posted 28 July 2012 - 08:34 PM
ok thank you. im really new
jziel98 #4
Posted 28 July 2012 - 08:39 PM
im still really confused, i cant find the pastebin code or anything.here is the link to the thing i want.
http://www.computercraft.info/forums2/index.php?/topic/1863-gamecomputer-hangman/page__hl__games__fromsearch__1
Tiin57 #5
Posted 28 July 2012 - 08:44 PM
The pastebin code is the underlined part of the URL:
pastebin.com/De598fM
Hope that helps!
jziel98 #6
Posted 28 July 2012 - 08:46 PM
when i tried to enter into the computer on the server it says no such program
MysticT #7
Posted 28 July 2012 - 08:53 PM
Check if the file is there, type:
> programs

There will be a list of all the available programs. If pastebin is not there, it's on another directory. I think it's inside the http folder, so you have to use:
> http/pastebin get <code> <filename>

If that doesn't work, the server doesn't have the program, so you can't use it.

Also, if http is not enabled on the server you can't use it.
jziel98 #8
Posted 28 July 2012 - 08:55 PM
and what is the file name that way i know that is not the problem?
MysticT #9
Posted 28 July 2012 - 09:09 PM
and what is the file name that way i know that is not the problem?
What file name? The usage is the same as before, like tiin57 posted.
jziel98 #10
Posted 28 July 2012 - 11:47 PM
what is the save name?
MysticT #11
Posted 28 July 2012 - 11:55 PM
It's the name you want the saved file to have.
Example:
> pastebin get <code> MyProgram

Now the file MyProgram has the program you wanted, and you can run it using:
> MyProgram <any arguments needed>
jziel98 #12
Posted 29 July 2012 - 12:00 AM
its finally working, if i have any other problems i will be sure to post them. thank you so much guys
jziel98 #13
Posted 29 July 2012 - 12:03 AM
ok, its not working again and it keeps saying

connecting to pastebin.com… pastebin :75:
attempt to index ? (a nil value)

what should i do
MysticT #14
Posted 29 July 2012 - 12:19 AM
http is disabled. If you'r in sp you can enable it in the config. If it's a server you need to ask the owner to enable it.
jziel98 #15
Posted 29 July 2012 - 12:26 AM
i am the server owner. do you know how to enable it
MysticT #16
Posted 29 July 2012 - 12:39 AM
It's a config option. It's something like httpEnable, you have to set it to 1 (it's 0 by default, wich is disabled).
jziel98 #17
Posted 29 July 2012 - 01:14 AM
i cant find the folder or where it is. can you tell me how to find it? thx
MysticT #18
Posted 29 July 2012 - 01:50 AM
Go to the server folder, there should be a folder named config, inside there's a file called mod_ComputerCraft.cfg (<Server Folder>/config/mod_ComputerCraft.cfg).
Open it with a text editor, and change the line that says enableAPI_http=0 to enableAPI_http=1.
jziel98 #19
Posted 29 July 2012 - 02:09 AM
it is finaly working. thank you. i can finally play hangman