Skip to content

Instantly share code, notes, and snippets.

@florianl
Created September 30, 2025 07:30
Show Gist options
  • Select an option

  • Save florianl/89a305f50e10b6c8dd75f8cb2a49cce9 to your computer and use it in GitHub Desktop.

Select an option

Save florianl/89a305f50e10b6c8dd75f8cb2a49cce9 to your computer and use it in GitHub Desktop.
package main
import (
"log"
"os/exec"
"syscall"
)
func main() {
path, err := exec.LookPath("python3.13")
if err != nil {
log.Fatal(err)
}
args := []string{
"python3.13",
"/home/flehner/go/src/github.com/open-telemetry/opentelemetry-ebpf-profiler/tools/coredump/testsources/python/fib.py",
}
if err := syscall.Exec(path, args, nil); err != nil {
log.Fatal(err)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment