Sounds like you need a tee for stderr. I guess you could use it on stdout for your log but if it makes such a large file, you probably don't want that. Maybe do a google search on"linux tee for stdout"?
Good morning...
What I have:
I wrote a script that generates a LOOOOOOOONG log file...
I send stdout and stderr to the same file so I can see errors into context.
Problem is:
I have to find that THERE WAS an error first...
There are no obvious cues to separate the GOOD messages from the BAD
messages and scanning a long text file visually is a (sometimes useless)
challenge.
What I want:
stdout to one file.
stderr simultaneously out to 2 files.
I want to keep my log as it is (again, errors into context), but I also want
to output a parallel log with ERRORS only.
In other words:
One log captures only errors, so I know that something failed and,
another log captures EVERYTHING so I know WHERE it failed.
I know this is possible, but I am already dizzy trying to make sense of the
redirection reading.
Thanks!
ET
---------------------------------------------------
PLUG-discuss mailing list - PLUG-discuss@lists.plug.phoenix.az.us
To subscribe, unsubscribe, or to change your mail settings:
http://lists.PLUG.phoenix.az.us/mailman/listinfo/plug-discuss