Skip to content

Commit

Permalink
Attempting to get BGT to run, and get its stdout/stderr
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Nemere committed Nov 1, 2024
1 parent 31765eb commit fc8e551
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions api/ws/handlers/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit fc8e551

Please sign in to comment.