I run a python script that create a PNG file using the exec
package:
cmd := exec.Command("python", "script.py")
cmd.Run()
How could I safely check the command exit state and that the PNG file was successfully created ?
I run a python script that create a PNG file using the exec
package:
cmd := exec.Command("python", "script.py")
cmd.Run()
How could I safely check the command exit state and that the PNG file was successfully created ?