LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-27-2007, 04:40 AM   #1
karthikeyan1171
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Rep: Reputation: 0
Getting the Warning message to the script


Hi Guys,
I want to know, How to read a warning message from the prompt.
For Eg,
If we type,
>su <username>
Warning: Password will expire in <some> days.

Could you tell me how to read this type of warning message from the prompt.

--Karthikeyan
 
Old 12-27-2007, 04:45 AM   #2
tommytomthms5
Member
 
Registered: Sep 2007
Distribution: debian based
Posts: 305

Rep: Reputation: 30
wait by "read" you mean make heads and tails of it... or to read it from the history?
 
Old 12-27-2007, 04:53 AM   #3
prasanta
Member
 
Registered: Mar 2005
Location: India
Distribution: Debian
Posts: 368

Rep: Reputation: 37
Quote:
I want to know, How to read a warning message from the prompt.
Combination of cut, grep etc.

--
Prasanta
 
Old 12-27-2007, 06:47 AM   #4
karthikeyan1171
LQ Newbie
 
Registered: Dec 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by tommytomthms5 View Post
wait by "read" you mean make heads and tails of it... or to read it from the history?
I can not redirect it to stdout or stderr.. that is the problem..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to suppress particular warning message? hottdogg Programming 3 03-02-2007 02:15 AM
Partition warning message? kushalkoolwal Programming 4 10-19-2005 04:38 PM
why warning message is appear? eye Red Hat 3 10-22-2003 10:14 AM
Warning message during bootup Akajack Linux - Newbie 2 09-20-2003 12:44 AM
Xemacs warning message mikeshn Linux - Software 0 09-11-2003 06:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:47 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration