Geeks Talk

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.

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 Blogs FAQ Tag Cloud Calendar Mark Forums Read

Scripting Discuss Issues and Problems related to VB Script, Java Script and other Client Side Scripting

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-14-2007
Contributing Member
 
Join Date: Apr 2007
Location: Bangalore
Posts: 46
Thanks: 6
Thanked 8 Times in 7 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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


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 02:20 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved