You can directly supply arguments as input string
$ cb "Hey! How you doing?"
Copied to clipboard: Hey! How you doing?
Or you can just pipe inputs to cb
$ cat /etc/profile | cb
Copied to clipboard: # /etc/profile
# Append "$1" to $PATH when not already in.
# This function API ...
... and cb
will preserve all newlines.
ssh
to you remote machine with
$ ssh [email protected] -R 15756:localhost:15756
You also need to start a local cb
process in your local machine (client)
$ cb -r
Listening to remote @ localhost:15756...
Then, you can run cb
as usual
[email protected] $ pwd | cb
>> Detected inside ssh, setting current role as remote sender.
Sending to remote @ localhost:15756...
Copied to clipboard: myhomeserver.org