2

I want to use a named pipe as input for a command line utility I'm writing. I know I can echo "all work and no play" > ./namedpipe to write once to the named pipe, but is there a way to do that interactively? That is, as if I'm typing into the stdin of a program or using netcat.

  • 3
    cat > namedpipe? – Jeff Schaller Oct 19 '15 at 21:33
  • @JeffSchaller I think I actually tried that like 5 times but kept accidentally typing echo instead of cat without realizing. It works. – sudo Oct 19 '15 at 21:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.