Prepare for your Next Interview
This is a discussion on Can we filter only the error messages? within the Scripting forums, part of the Web Development category; Hi All, I using K-Shell. I am automating one of the Test procedure. I want to know if we can filter out the error messages only? I mean $ cat ...
|
|||
|
Can we filter only the error messages?
Hi All,
I using K-Shell. I am automating one of the Test procedure. I want to know if we can filter out the error messages only? I mean $ cat file.txt | grep "Name" The above is just a example. Say the above statements results in an errors, can we capture those in any file??? One way is we can redirect the output to some file $cat file.txt | grep "Name" >> result.txt But this would redirect the entire output to log file. But my requirement is i want to redirect only error messages. So that at any point of time if there are any errors, I can have a look at that file and find. And also I dont want to put errors on the console or shell prompt. Sorry have written a big mai ![]() regards prakash l |
| Sponsored Links |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| About Servlet Filter... | psuresh1982 | Java | 1 | 06-16-2007 04:41 PM |
| Running Authentication filter | surender_reddy | Java | 0 | 02-09-2007 05:30 AM |
| Load testing for sending messages | ashacta | LoadRunner | 0 | 01-19-2007 04:58 AM |
| The Triple Filter Test | Lokesh M | Personality Development | 1 | 10-01-2006 04:28 PM |
| How to Block messages in UNIX | nancyphilips | Unix/Linux | 1 | 09-24-2006 03:56 AM |