Code Monkey home page Code Monkey logo

rederr's Introduction

rederr

rederr is a small tool that invokes another command and propagates its stdout as-is and its stderr in ANSI red.

Just prefix any command line of your choice with rederr and it will make it easy for to figure out what is error and what is output.

Example:

Screenshot of rederr in action

Building:

First ensure you have the meson and ninja binaries installed, as well as the required C compiler (gcc) and related tools.

Run meson build in the project root directory. Next change into the build directory with cd build/ Finally run ninja in that directory. You should now have a rederr binary which you can copy to your $PATH.

Example:

james@computer:~/code/src/rederr$ meson build
The Meson build system
Version: 0.47.2
Source dir: /home/james/code/src/rederr
Build dir: /home/james/code/src/rederr/build
Build type: native build
Project name: rederr
Project version: 1
Native C compiler: cc (gcc 8.2.1 "cc (GCC) 8.2.1 20181105 (Red Hat 8.2.1-5)")
Build machine cpu family: x86_64
Build machine cpu: x86_64
Build targets in project: 1
Found ninja-1.8.2 at /usr/bin/ninja
james@computer:~/code/src/rederr$ cd build/
james@computer:~/code/src/rederr/build$ ninja
[2/2] Linking target rederr.
james@computer:~/code/src/rederr/build$ file rederr
rederr: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 3.2.0, BuildID[sha1]=904987c76a525afd91777107193a564aa2a8cbc4, with debug_info, not stripped

rederr's People

Contributors

purpleidea avatar poettering avatar pineapplecanary avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.