Geeks Talk

Prepare for your Next Interview




Can we filter only the error messages?

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 ...


Go Back   Geeks Talk > Web Development > Scripting

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 11-14-2007
Contributing Member
 
Join Date: Apr 2007
Location: Bangalore
Posts: 44
Thanks: 6
Thanked 7 Times in 6 Posts
prakash.kudrekar is on a distinguished road
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
Reply With Quote
Sponsored Links
Reply

  Geeks Talk > Web Development > Scripting


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


All times are GMT -4. The time now is 01:35 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Copyright © 2008 GeekInterview.com. All Rights Reserved