warren run pipes to deamon, rm binaries acidently added

This commit is contained in:
Dan Ballard 2014-12-20 08:59:03 -08:00
parent c3385f8495
commit 059ce9875c
4 changed files with 6 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,3 +1,5 @@
.*.swp .*.swp
/warren /warren
/deploy /deploy
/cmd/warren/warren
/cmd/warrend/warrend

View File

@ -5,6 +5,7 @@ import (
"github.com/dballard/warren/lib/warren" "github.com/dballard/warren/lib/warren"
"log" "log"
"net" "net"
"strings"
// "os" // "os"
// "os/exec" // "os/exec"
// "time" // "time"
@ -28,9 +29,11 @@ func runRun(cmd *Command, args ...string) {
return return
} }
_, err := net.Dial(warren.CmdSockType(), warren.CmdSockAddr()) s, err := net.Dial(warren.CmdSockType(), warren.CmdSockAddr())
if err != nil { if err != nil {
log.Fatal("Error connecting to warrend:", err) log.Fatal("Error connecting to warrend:", err)
} }
s.Write([]byte(strings.Join(args, " ")))
} }

Binary file not shown.

Binary file not shown.