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

How do I use shell.run()?

Started by OrionDude, 07 January 2014 - 01:52 PM
OrionDude #1
Posted 07 January 2014 - 02:52 PM
Excellent job! just one question how if even possible can i run this in the startup program using shell.run()?
Lyqyd #2
Posted 07 January 2014 - 03:38 PM
I've split this into its own topic.

Essentially, all you need to do is take whatever command you use to start the program and just pass it as a string to shell.run().

For example, you might use:


shell.run("monitor top edit /rom/programs/shell")

Obviously, that's not the exact command you want to use, but it should give you some idea how to accomplish it.