diff --git a/api/ws/handlers/scan.go b/api/ws/handlers/scan.go index 24d5b0ec..98d2aa30 100644 --- a/api/ws/handlers/scan.go +++ b/api/ws/handlers/scan.go @@ -657,6 +657,11 @@ func createBeamLocation(rsiPath string, outputBeamLocationPath string, logger lo } cmd := exec.Command(bgtPath+"BGT", bgtPath+"Geometry_PIXL_EM_Landing_25Jan2021.csv", rsiPath, outSurfaceTop, outRXL, outLog) + + cmd.Stdout = os.Stdout + cmd.Stderr = os.Stderr + cmd.Dir = bgtPath + if err := cmd.Run(); err != nil { return "", "", fmt.Errorf("BGT tool error: %v", err) }