Skip to content

Is there any way that to pass STDIN into line.run? #28

@cdesch

Description

@cdesch

Is there any way to pass data into line.run as STDIN? Similar to using the pipe operator | in CLI apps like ls | grep '\.txt$', where the output of the command ls is directed as STDIN to grep?

using the ``ls | grep '.txt$'example, that would be inserting whatever I'd want to pass intogrep` as STDIN somewhere when running the command:

line = Terrapin::CommandLine.new("grep", "'\.txt$'")
line.run 

If it is by design to to exclude the ability for passing STDIN using Terrapin because of saftey, that would be good to know. A different tool may be a better option to do what I'm trying to do, such as IO.popen.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions