[TriLUG] A question about system error messages--how do you capture them??
Jon Carnes
jonc at nc.rr.com
Mon Feb 25 21:19:39 EST 2002
> And although I'm not having this problem, I would like to know how to
> capture error messages from a Linux system?? I'm assuming that there is a
> simple command to direct these messages to a text file.
>
If you are talking about errors from running a program or script... run the
program/script and use a redirect to a text file. The proper redirect for
errors/warnings is 2>
myscript 2> myfilename.txt
Jon
More information about the TriLUG
mailing list