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

shell.resolve dont work with os,run

Started by Wilma456, 04 August 2016 - 12:31 PM
Wilma456 #1
Posted 04 August 2016 - 02:31 PM
If I call a Programm with os.run, the function shelk.resolve dont exists. What can I do to fix this?
Lyqyd #2
Posted 04 August 2016 - 03:59 PM
If you're calling os.run in a place where you could call shell.run, you can either call shell.run instead, or pass an environment table containing the following instead of an empty table as the first argument:


{shell = shell, multishell = multishell}

If you're calling os.run in a place where shell.run is inaccessible, you cannot easily and should not attempt to find a shell instance from another environment and expose it to the program.