-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
[RFC] Implement a way to construct pipes #12
Comments
Is it possible to call subprocesses directly, without executing the shell |
@v217 Could you elaborate more on your question? I'm not sure I understand it completely... |
@chshersh Sure, if I now write "sleep" ["1000"] ghci calls
|
@v217 Thanks for the clarification! I see what do you mean now. This happens because we're using
This command constructs a process using According to the documentation (if my understanding is correct), it should be possible to replace Are there any drawbacks regarding using a command from |
@chshersh No, apart from shell scripts not being portable, and any shell bug, security flaw might also affect the haskell script. Anyway Thanks for the callProcess link! I am on ubuntu and I will modify your script to use callProcess. I think, if you want to implement Pipes, you have to use callProcess? Currently I am interested in simple scripting solutions for haskell. I am also experimenting with Shh, the most lightweight scripting solution for haskell, I tried so far. |
Ah, I've also been looking at |
I agree, leaving it that simple is certainly an advantage! |
Maybe use https://github.com/gregwebs/Shelly.hs which is (ideally) system-agnostic? |
When I need to call pipes I often end with the code like this:
I can use
$|
operator but it's not efficient. So maybe having some additional function would be useful and I can rewrite it like this:The text was updated successfully, but these errors were encountered: