-
Notifications
You must be signed in to change notification settings - Fork 236
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is there function to execute a shell command #136
Comments
Sorry, not yet. |
it's easy to implement with popen, i guess. |
Hey @matz! Big fan of your work! Would the syntax for this feature look something like this?
If so, I could try to implement it. Thanks! |
What I thought was:
|
Yeah, that's way better. I'll explore that route. Thanks for replying!
…On Sun, 11 Nov 2018 at 21:17, matz ***@***.***> wrote:
What I thought was:
spawn("ls") | stdout # can be a producer
stream | spawn("grep foo") | stdout # and also be a filter
stream | spawn("cat > /tmp/a") # and a consumer
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#136 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ACBcdO3GlUNP2aXpsDBPEclAfZ-QEkv4ks5uuL40gaJpZM4GLWz3>
.
|
I managed to implement the first use-case on my fork (and it seems to work fine so far)
Now I'm stuck at this one:
As far as I understand, a stream can be a producer, a consumer, or a filter, but not all at the same time. So, the first question is: Is it possible for the spawn function to produce different kinds of streams based on their usage? If so, is there a way to identify how the function is being used (maybe based on the stream parameter or something like that)? Thanks! |
As a shell script, is there a function to execute a shell command (e.g. "ls", "pwd", etc.), already?
The text was updated successfully, but these errors were encountered: