Closed jm33-m0 closed 2 years ago
The goal is to achieve command exec without using any existing shells. Currently I use os/exec but it can't fully replace cmd.exe /C
os/exec
cmd.exe /C
This looks good enough, we can wait for a command to finish within 10s, if it exceeds 10s we kill it and return its output. If you are running a program that needs more time, append & to it.
&
The goal is to achieve command exec without using any existing shells. Currently I use
os/exec
but it can't fully replacecmd.exe /C