forked from adoxa/errout
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathreadme.txt
110 lines (71 loc) · 2.95 KB
/
readme.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
Errout
Copyright 2011-2013 Jason Hood
Version 1.10. Freeware
Description
===========
There are occasions when you would like to redirect both standard output
(stdout) and standard error (stderr). The normal method to achieve this is
">file 2>&1" - send stdout to the file and duplicate stderr to stdout. The
problem with this method is it changes the order (as seen on the console) -
you end up with all of stdout, followed by all of stderr. Errout really
sends stderr to stdout, maintaining the order.
Requirements
============
32-bit: Windows 2000 Professional and later (it won't work with NT or 9X).
64-bit: Vista and later (it won't work with XP64 or Server 2003).
Installation
============
Add "x86" (if your OS is 32-bit) or "x64" (if 64-bit) to your PATH, or copy
the relevant files to a directory already on the PATH.
Upgrading
---------
Delete "errout-LLW.exe", it is no longer used.
Usage
=====
errout [options] program [args]
-a[B]F
Define the color (background and foreground) for stderr; if B is absent, it
will default to 0 (black). I'll cheat here and just point you to COLOR/?
for the values. The environment variable ERROUTCOL=[B]F may be set to
provide -a by default.
-c[e|o]
In addition to sending output to stdout, this option will send it to the
console (both stderr & stdout, or just one or the other). This should
really only be used if you redirect, as otherwise you'll get an echo.
-d
Delay the hook till after the program is started. This may be useful for
some programs. The prime example is 7z (this program's raison detre),
which will refuse to combine the streams without it.
-o FILE
-e FILE
-f FILE
In addition to sending output to stdout, these options will send stdout,
stderr and/or both to file. The lower case letter will always create the
file; an upper case letter will append.
program [args]
The program and its arguments to run with stderr sent to stdout.
Version History
===============
Legend: + added, - bug-fixed, * changed.
1.10 - 14 November, 2013:
* improved compatibility (thanks to all the work done on ANSICON).
Contact
=======
mailto:jadoxa@yahoo.com.au
http://errout.adoxa.vze.com/
Jason Hood
11 Buckle Street
North Rockhampton
Qld 4701
Australia
Distribution
============
The original zipfile can be freely distributed, by any means. However, I
would like to be informed if it is placed on a CD-ROM (other than an arch-
ive compilation; permission is granted, I'd just like to know). Modified
versions may be distributed, provided it is indicated as such in the ver-
sion text and a source diff is made available. In particular, the supplied
binaries are freely redistributable. A formal license (zlib) is available
in LICENSE.txt.
==============================
Jason Hood, 14 November, 2013.