The relay is needed to staple the parallel incoming and outgoing connections. This will automatically tell the receiver to use stdout when they receive the text so it will be displayed. In addition to piping, you can easily send text with croc: Sometimes you want to send URLs or short text. To receive to stdout at you can always just use the -yes will automatically approve the transfer and pipe it out to stdout.Īll of the other text printed to the console is going to stderr so it will not interfere with the message going to stdout. In this case croc will automatically use the stdin data and send and assign a filename like "croc-stdin-123456789". $ croc send -code Use pipes - stdin and stdout You can send with your own code phrase (must be more than 4 characters). A set of options (like custom relay, ports, and code phrase) can be set using -remember. There are a number of configurable options (see -help). The code phrase is used to establish password-authenticated key agreement ( PAKE) which generates a secret key for the sender and recipient to use for end-to-end encryption. Then to receive the file (or folder) on another computer, you can just do $ croc send Sending 'file-or-folder' (X MB)Code is: code-phrase $ GO111MODULE=on go get -v /schollz/croc/v8 Usage Or, you can install Go and build from source (requires Go 1.12+): On Gentoo you can install with portage: $ emerge net-misc/croc On Arch Linux you can install the latest release with pacman: On Unix you can install the latest release with Nix: On Windows you can install the latest release with Scoop or Chocolatey: $ sudo port selfupdate$ sudo port install croc On macOS you can also install the latest release with MacPorts: On macOS you can install the latest release with Homebrew:
0 Comments
Leave a Reply. |