Skip to content
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

open_process for stderr #3533

Closed
vicuna opened this issue Aug 14, 2002 · 2 comments
Closed

open_process for stderr #3533

vicuna opened this issue Aug 14, 2002 · 2 comments
Labels

Comments

@vicuna
Copy link

vicuna commented Aug 14, 2002

Original bug ID: 1326
Reporter: administrator
Status: closed
Resolution: not a bug
Priority: normal
Severity: minor
Category: ~DO NOT USE (was: OCaml general)

Bug description

Full_Name: Dimitri Ara
Version:
OS: Unix
Submission from: mutu.net (80.65.226.162)

It would be very convenient to have an open_process_in_error (for example)
function that get an input channel binded to the error output of a process as
open_process_in does with the standard output.

Or maybe a open_process_in_error : string -> in_channel * in_channel
to get channels for stdout and stderr.

It's pretty annoying to use pipe, fork and dup2 for a so simple task.

@vicuna
Copy link
Author

vicuna commented Aug 19, 2002

Comment author: administrator

It would be very convenient to have an open_process_in_error (for
example) function that get an input channel binded to the error
output of a process as open_process_in does with the standard
output.

Sure. It's called Unix.open_process_full.

  • XL

@vicuna
Copy link
Author

vicuna commented Aug 19, 2002

Comment author: administrator

Unix.open_process_full does the job.

@vicuna vicuna closed this as completed Aug 19, 2002
@vicuna vicuna added the bug label Mar 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant