tinygo icon indicating copy to clipboard operation
tinygo copied to clipboard

Feature request: os/exec (execute other executable)

Open probonopd opened this issue 4 years ago • 2 comments

How can I execute another executable from TinyGo (Linux target) and act on its output/return code? (Not sure whether this is the correct place to ask, please advise.)

probonopd avatar Oct 17 '19 20:10 probonopd

At the moment we do not have support for that. Depending on your needs, you could probably use cgo for this, but you will not be able to access stdin and stdout at the same time yet. I am hoping to get some of the things required done, but it might be a bit before os/exec works.

niaow avatar Oct 17 '19 23:10 niaow

Been almost three years, it seems a bit hard to understand that such basic functionality is missing.

Is there still a chance that os/exec will ever be supported?

There seems to be "only" a stub currently.

probonopd avatar Aug 04 '22 10:08 probonopd