We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d912506 commit 5654e50Copy full SHA for 5654e50
README.md
@@ -59,10 +59,14 @@ The `clj-ssh.ssh` namespace should be using SSH from functional code.
59
(with-connection session
60
(let [result (ssh session {:in "echo hello"})]
61
(println (result :out)))
62
- (let [result (ssh session "/bin/bash" "-c" "ls" "/")]
+ (let [result (ssh session {:cmd "ls"}]
63
(println (second result))))))
64
```
65
66
+The above example shows using `:in` to pass commands to a shell, and using
67
+`:cmd` to exec a command without a shell. When using `:cmd` you can still pass
68
+a stream or a string to `:in` to be used as the process' standard input.
69
+
70
```clj
71
(let [agent (ssh-agent {})]
72
(let [session (session agent "localhost" {:strict-host-key-checking :no})]
0 commit comments