Closed bclswl0827 closed 1 year ago
Interesting, and does it work if you run it manually, not through your Go program?
SatDump works well if I run it manually
Hmmmm... With the exact same command?
Exactly the same. BTW, I checked many version and got a working one (But it's not the last available version) https://github.com/SatDump/SatDump/tree/8903c566d9a62f655f47beccfcdbf380849abd4f
Do you have a minimal example go code I can debug with?
@bclswl0827 are you still having this issue? I just wrote a similar script and it works fine with go version go1.18.1 linux/amd64 on the latest build of SatDump
Live with GOES HRIT:
package main
import (
"log"
"os"
"os/exec"
)
func main() {
var cmd = exec.Command("/usr/bin/satdump", "live", "goes_hrit", "/home/jamie/Documents/satdump/test", "--source", "rtltcp", "--samplerate", "2.4e6", "--frequency", "1694.1", "--ip_address", "192.168.1.137", "--http_server", "0.0.0.0:8080")
cmd.Stderr = os.Stderr
cmd.Stdout = os.Stdout
if err := cmd.Start(); err != nil {
log.Fatalln("Failed to Start SatDump!")
}
}
Command for offline METEOR M2 LRPT 80k processing
var cmd = exec.Command("/usr/bin/satdump", "meteor_m2-x_lrpt_80k", "cadu", "/media/jamie/Shared/Radio/LEO Satellite/LRPT/2023-07-15 1459 UTC - METEOR M2-3/meteor_m2-x_lrpt_80k.cadu", "/home/jamie/Documents/satdump/test")
Thank you! This problem seems to come from environment variable settings, I switched to another account and it worked
Description of the issue
I was spawning a SatDump as a subprocess in a Go program, but it always throws error.
Hardware (SDR/PC/OS)
SDR: SDRplay 1A PC: x86_64 architecture OS: Bullseye Debian GNU/Linux
Version (Eg, 1.0.0, CI Build #171)
SatDump v1.1.0-a35e30c
Logs after the cras (satdump.logs)
I was using this command
satdump logs
Other info (Eg, Screenshots) / Files useful for debugging (CADU, etc)
I also tried to spawning SatDump in supervisor, but I got the same result.
My Go code snippet: