How to execute a sh file in Lua?
You can use the os.execute function in Lua to run shell scripts. This function can execute commands in the operating system and return the results.
os.execute("sh your_script.sh")
your_script.sh is the path to your shell script file. The execution result can be obtained through the return value of the function, where a return value of 0 generally indicates successful execution, while a non-zero value indicates failure.