Ask Your Question
2

What is the return value of os.execute in Lua?

asked 2023-05-05 11:55:05 +0000

devzero gravatar image

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
3

answered 2023-05-05 12:07:01 +0000

david gravatar image

The return value of os.execute in Lua is dependent on the operating system being used.

On Unix-based systems, os.execute returns the exit status of the command being executed (0 for success, non-zero for failure).

On Windows systems, os.execute returns true if the command was executed successfully, and false otherwise.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss

Add Answer


Question Tools

Stats

Asked: 2023-05-05 11:55:05 +0000

Seen: 14 times

Last updated: May 05 '23