On Tue, Oct 16, 2018 at 7:13 AM, Mirko Friedenhagen
<mfriedenha...@gmx.de> wrote:
>
> I am on my way to replace a Python script which writes several configuration
> files before replacing itself with another program (e.g. bash). For that I
> use https://docs.python.org/3/library/os.html#os.execv.
>
> Is there any equivalent in Golang? I do not use any fancy go routines in the
> script, the only output are some log lines. Is it OK to just call something
> like `syscall.Exec("/bin/bash", args, os.Environ())`

Yes, syscall.Exec seems like the closest equivalent.  It only works on
Unix systems.

Ian

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to