#stdio #command #redirect #stdin #file #mode #wrap

bin+lib stdioredirect

stdioredirect provides a tool to wrap another command and redirect its outut

4 releases (breaking)

new 0.4.0 Dec 4, 2024
0.3.0 Oct 8, 2024
0.2.0 Aug 19, 2024
0.1.0 Aug 19, 2024

#15 in #wrap

Download history 229/week @ 2024-08-14 48/week @ 2024-08-21 15/week @ 2024-09-11 10/week @ 2024-09-18 21/week @ 2024-09-25 111/week @ 2024-10-02 77/week @ 2024-10-09 2/week @ 2024-10-16

282 downloads per month

Apache-2.0

18KB
273 lines

stdioredirect

stdioredirect is a simple tool to perform redirection of stdio. It is intended for use as a wrapper program like numactl or env.

USAGE: stdioredirect [--close-$stream|--$stream /file.txt] -- command [args]

Options:
    -h, -help           Print this help menu.
        -close-stdin    "Close stdin. Mutually exclusive with --stdin."
        -close-stdout   "Close stdout. Mutually exclusive with --stdout."
        -close-stderr   "Close stderr. Mutually exclusive with --stderr."
        -stdin          "Redirect stdin to this file in O_RDONLY mode."
        -stdout         "Redirect stdout to this file in O_WRONLY mode,
                        truncating and creating as necessary."
        -stderr         "Redirect stderr to this file in O_WRONLY mode,
                        truncating and creating as necessary."

Status

Maintenance track. The binary is considered stable and will be put into maintenance mode if unchanged for one year.

Scope

This crate provides the stdioredirect tool.

Documentation

The latest documentation is always available at docs.rs.

Dependencies

~3MB
~59K SLoC