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

Unable to run a file on disk

Started by vyse, 06 November 2014 - 02:15 AM
vyse #1
Posted 06 November 2014 - 03:15 AM
So lately I have been working on a website and I got most of my website done but now I'm adding commands that a admin can use while on website it's like a command prompt on a website or console anyways I have this one command : website/beta what this suppose to do is run the latest beta version of the website but the problem is when I type the command it says no file found, so what my problem is im trying to get a file to run on the clients computer that is on the server and when i do it says no file found.. and im guessing i need some sort of pkt sending system from the server to the client to run the file i want to work.. which i believe would be something like this inzernet.GET(ip,file) but when i try to run the program it says a nil value.. so i just need a boost so that i can send the file from the server to the client. any ideas?
Edited on 06 November 2014 - 02:41 AM
Bomb Bloke #2
Posted 07 November 2014 - 02:47 AM
Two options; either copy the file from the server to the client, or have the client tell the server to run the file.

I'm afraid I can't comment on the best option without a whole lot more context. I'm assuming the latter option is best, as it sounds like you're going for something along the lines of Telnet/SSH?
vyse #3
Posted 07 November 2014 - 05:10 PM
I believe ssh but I've found out that it's nothing to do with me it's the internet that needs have that setup but if I was going to have the client run a file from the server there would have to be a variable in the index to run the file I believe