Skip to content

Instantly share code, notes, and snippets.

@mlbright
Created August 2, 2013 21:30
/*
Adapted from Tim Kay's solo:
docs: http://timkay.com/solo/
source: http://timkay.com/solo/solo
*/
package main
import (
"net"
"flag"
"os/exec"
)
func main() {
var port int
flag.IntVar(&port, "port", 3801, "port to use")
flag.Parse()
cmd := exec.Command(flag.Args())
if runerr := cmd.Run(); runerr != nil {
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment