diff options
author | Joe <rbo@gmx.us> | 2023-12-15 20:20:20 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2023-12-15 20:20:20 +0100 |
commit | fe9990c570fd1d7e55e6e0af280e7959d4bc5187 (patch) | |
tree | 32d93e596b9ed872782ce7f237eb3f66d0434990 /c_josh.go | |
parent | yeye (diff) | |
download | hardflip-fe9990c570fd1d7e55e6e0af280e7959d4bc5187.tar.gz hardflip-fe9990c570fd1d7e55e6e0af280e7959d4bc5187.tar.bz2 hardflip-fe9990c570fd1d7e55e6e0af280e7959d4bc5187.tar.xz hardflip-fe9990c570fd1d7e55e6e0af280e7959d4bc5187.tar.zst hardflip-fe9990c570fd1d7e55e6e0af280e7959d4bc5187.zip |
you rock
Diffstat (limited to 'c_josh.go')
-rw-r--r-- | c_josh.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -61,7 +61,10 @@ func display_servers(lhost *HostList) { curr = curr.next } fmt.Println() - curr = lhost.head + curr = lhost.sel(2) + if curr == nil { + c_die("host id not found", nil) + } fmt.Println ("ssh", "-i", curr.Priv, "-p", strconv.Itoa(int(curr.Port)), curr.User + "@" + curr.Host) cmd := exec.Command("ssh", "-i", curr.Priv, "-p", strconv.Itoa(int(curr.Port)), curr.User + "@" + curr.Host) cmd.Stdin = os.Stdin |