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

terminal commands in a GUI?

Started by dylan, 05 April 2012 - 01:37 PM
dylan #1
Posted 05 April 2012 - 03:37 PM
I am making a simple GUI for a server that I play on but I can't figure out how to execute a terminal command such as "ls" inside of a program. I think it is a Shell command of some sort. I have looked at tutorial after tutorial. Even going to look at the actual Lua documentation.
Thanks in advance.
Advert #2
Posted 05 April 2012 - 04:31 PM
You're looking for shell.run.

See help shellapi.

Sample:

shell.run("program", "arg1", "arg2") = 'program arg1 arg2'
dylan #3
Posted 05 April 2012 - 04:35 PM
You're looking for shell.run.

See help shellapi.

Sample:

shell.run("program", "arg1", "arg2") = 'program arg1 arg2'
hmm interesting. I was almost positive I've tried Shell.run. Thank you! Now it seems like that was a question that didn't deserve asking. hence the "clueless" I guess.