From fc8e551a993b085fa2381a67409229f5ea54db3e Mon Sep 17 00:00:00 2001 From: Peter Nemere Date: Fri, 1 Nov 2024 18:40:26 +1000 Subject: [PATCH] Attempting to get BGT to run, and get its stdout/stderr --- api/ws/handlers/scan.go | 5 +++++ 1 file changed, 5 insertions(+) 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) }