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 (
>
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", "