Prepare for your Next Interview
|
Welcome to the Geeks Talk forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact contact us. |
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 ...
|
|||||||
| Scripting Discuss Issues and Problems related to VB Script, Java Script and other Client Side Scripting |
![]() |
| LinkBack | Thread Tools | Display Modes |
|
|||
|
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 | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Load testing for sending messages | ashacta | LoadRunner | 1 | 10-06-2008 03:48 AM |
| About Servlet Filter... | psuresh1982 | Java | 1 | 06-16-2007 05:41 PM |
| Running Authentication filter | surender_reddy | Java | 0 | 02-09-2007 06:30 AM |
| The Triple Filter Test | Lokesh M | Personality Development | 1 | 10-01-2006 05:28 PM |
| How to Block messages in UNIX | nancyphilips | Unix/Linux | 1 | 09-24-2006 04:56 AM |