Re: [go-nuts] Anomaly in RunCommand and the exit status of the child process

2020-01-29 Thread Ian Lance Taylor
On Wed, Jan 29, 2020 at 12:20 AM Subramanian Sridharan wrote: > > I'm in need of using the "script" command (more info about script in the end) > in Linux to run a couple of commands and get the exit status of the second > command. > > Here is my code snippet: > > package main > > > import ( >

[go-nuts] Anomaly in RunCommand and the exit status of the child process

2020-01-29 Thread Subramanian Sridharan
Hi guys, I'm in need of using the "script" command (more info about script in the end) in Linux to run a couple of commands and get the exit status of the second command. *Here is my code snippet:* package main import ( "fmt" "os/exec" ) func main() { op, err := exec.Command("script", "