Skip to content

Commit df8a996

Browse files
committed
Added 'a pseudo-scp using exec' example
1 parent 6c07757 commit df8a996

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ Examples:
202202
$ scw exec $(scw start -w $(scw create ubuntu-trusty)) bash
203203
$ scw exec myserver tmux new -d sleep 10
204204
$ scw exec myserver ls -la | grep password
205+
$ cat local-file | scw exec myserver 'cat > remote/path'
205206
```
206207

207208

exec.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ var cmdExec = &Command{
2525
$ scw exec $(scw start -w $(scw create ubuntu-trusty)) bash
2626
$ scw exec myserver tmux new -d sleep 10
2727
$ scw exec myserver ls -la | grep password
28+
$ cat local-file | scw exec myserver 'cat > remote/path'
2829
`,
2930
}
3031

0 commit comments

Comments
 (0)