Giter Club home page Giter Club logo

wintee's Introduction

Overview

WinTee arose out of a need for something similar to the UNIX tee command on Windows. Tee can be piped output from another command and it will pump it to both the console and a file. There is a Windows port of tee, but it obscures the exit code of the original application.

Over time, features were added to do a few other things.

This project also happens to be a reasonable example of how to process output and error streams correctly using C.

Usage

WinTee.exe [-pid <pid_file>] [-n[c|l][o|e]] <command and arguments>

WinTee looks at an environment variable LOGFILE to determine where to send its output (in addition to sending it to the console). In this way, you can have a script that sets the variable once and then executes a whole bunch of commands.

-pid <pid_file> Specifies a text file to output WinTee's process identifier (PID). This is useful for later killing the process using TASKKILL /T /F /PID xxx.

-n[c|l][o|e] Suppresses console (c) or log (l) output (o) or error (e) streams. For example, -nle will suppress the error stream meant for the log file.

Building

The solution file was created under Visual Studio 2012. There are no dependencies other than windows.h and stdio.h, so you should be able to create a project file for another version if needed.

wintee's People

Contributors

mpderbec avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

datadiode

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.