Coder Social home page Coder Social logo

Pipe data using standard streams about croc HOT 3 CLOSED

schollz avatar schollz commented on August 28, 2024 1
Pipe data using standard streams

from croc.

Comments (3)

schollz avatar schollz commented on August 28, 2024

@dnaf It's now possible to pipe with stdin/stdout.

You can send with stdin using:

echo "hello, world" | croc --send stdin --code 1-my-secret-code

And receive through stdout using:

croc --stdout --yes --code 1-my-secret-code > out

The --yes is not necessary, but it is useful because otherwise you'll be prompted about whether you want to save the file. Also if you don't include the code you'll have to enter the prompt for that too.

from croc.

sabhiram avatar sabhiram commented on August 28, 2024

Couldn't we tease if there is data being sent via stdin and omit the --send stdin?

from croc.

schollz avatar schollz commented on August 28, 2024

@sabhiram I didn't think about that - there is a way!

Fixed now with 1c05c35. Syntax is now:

echo "hello, world" | croc --code 1-my-secret-code

And receive through stdout using:

croc --stdout --yes --code 1-my-secret-code > out

from croc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.