Created
August 2, 2013 21:30
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
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