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 1fcfc0e commit 59114efCopy full SHA for 59114ef
examples/tarpipe.exs
@@ -21,12 +21,13 @@ end
21
22
:ok =
23
with {:ok, chan} <- SSHKit.Channel.open(conn, []) do
24
- # command = SSHKit.Context.build(ctx, "tar -x")
25
- command = "tar -x -C #{ctx.path}"
26
- IO.puts(command)
+ command = SSHKit.Context.build(ctx, "tar -x")
27
28
case SSHKit.Channel.exec(chan, command) do
29
:success ->
+ # In case of failed upload, check command output:
+ # IO.inspect(SSHKit.Channel.recv(chan))
30
+
31
{:ok, tar} = :erl_tar.init(self(), :write, fn
32
:position, {_, position} ->
33
# IO.write("tar position: #{inspect(position)}")
0 commit comments