ComputerCraft Forums

ComputerCraft => Programs => Topic started by: zdrmonster12 on Feb 10, 2019, 04:57 pm

Title: Lua Shell
Post by: zdrmonster12 on Feb 10, 2019, 04:57 pm
This is simple.

It clears the screen, then runs the LUA program. and turns the Computer's power off when the program is exited.
Code Select
pastebin get F0a5waVx startup This is my first program i uploaded. So criticize it if you want to!
Title: Lua Shell
Post by: osmarks on Feb 10, 2019, 07:58 pm
Um, why would you want to use this?
Title: Lua Shell
Post by: zdrmonster12 on Feb 10, 2019, 09:43 pm
Quote from: osmarks on Feb 10, 2019, 07:58 pmUm, why would you want to use this?

Because Some would want a Locked down Computer in their Computer Craft Server.

Plus it turns the Computer into one that would only run apps from floppy disks.*

*only when the disk you insert into the Computer has a startup file that would override the Startup on the Computer's "Hard Drive"
Title: Lua Shell
Post by: KingofGamesYami on Feb 12, 2019, 03:31 pm
This doesn't lock anything down.  It would take approximately 10 seconds to restore the computer to normal operating state.
Title: Lua Shell
Post by: zdrmonster12 on Feb 12, 2019, 08:02 pm
Quote from: KingofGamesYami on Feb 12, 2019, 03:31 pmThis doesn't lock anything down.  It would take approximately 10 seconds to restore the computer to normal operating state.

unless the Computer doesn't allow disk startup.
Title: Lua Shell
Post by: KingofGamesYami on Feb 12, 2019, 10:20 pm
Code Select
lua> fs.delete("startup")

Disk startup has literally zero effect on this.  Even if it did, I could simply change that setting from the lua prompt.
Title: Lua Shell
Post by: zdrmonster12 on Feb 13, 2019, 12:47 am
Quote from: KingofGamesYami on Feb 12, 2019, 10:20 pm
Code Select
lua> fs.delete("startup")

Disk startup has literally zero effect on this.  Even if it did, I could simply change that setting from the lua prompt.

...ok?