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

Computercraft amend data on server via FTP?

Started by Chrisszzyy, 24 August 2015 - 10:10 PM
Chrisszzyy #1
Posted 25 August 2015 - 12:10 AM
Hi guys,

So I'm in the middle of an 8 month project of mine and a brainwave I've had is having Computercraft gather statistics from a certain mod and adding it to a file on an FTP server. I should be capable of programming the program to get data from this mod but the bit I'm stuck on is putting it onto an FTP Server.

Are there any existing scripts which are around that would fit this kind of requirement - Taking data, opening a file on an FTP Server and modifying it with that data, saving it and repeating that every prescribed time period?

Thanks for your help.

Kind Regards,
Chris
Lyqyd #2
Posted 25 August 2015 - 12:54 AM
You would need a peripheral mod that adds an API that allows the computers to interact with an FTP server. I don't know of any offhand that do this currently, so that's the biggest obstacle to your idea that I can see.