How to run other program from within Odin

Hi,

Can I run another program from within Odin, similar to what Go’s “os/exec” library allows me to do? I haven’t been able to find much information about it so far.

There is this libc.system (docs).

2 Likes

This seems to work pretty well. Is there a way in which I could read the results into a variable?

There is work being done in core:os/os2 specifically under the process_*.odin files to streamline this. I haven’t tried using it myself yet, and I believe it’s still in development.

2 Likes

Hi I’m the guy who was working on os2/process. It is working, but perhaps some of the things are not stabilized and are probably a subject to change.

2 Likes