|
|
|
|
|
by ndyg
357 days ago
|
|
A basic use case, to tie it back to the topic :) When I'm working on a remote machine, it's nice to be able to easily pass things back and forth between it and my local laptop. I start a stream on the remote server and use `dumbpipe` to make the stream available on my local laptop. ``` # remote xs serve ./store --expose :3001 ; dumbpipe listen-tcp --host 127.0.0.1:3001 # local dumbpipe connect-tcp --addr 127.0.0.1:3001 <ticket> $env.XS_ADDR ":3001" ; .cat ``` I can then do things like: ``` # local cat local.file | .append local.file # remote .head local.file | .cas ``` Or register a local handler for the topic "pasteboard" that puts the contents on my local clipboard. Then, from the remote machine, I can run: `"foo" | .append pasteboard` |
|