LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Getting the Warning message to the script (https://www.linuxquestions.org/questions/linux-newbie-8/getting-the-warning-message-to-the-script-609356/)

karthikeyan1171 12-27-2007 03:40 AM

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

tommytomthms5 12-27-2007 03:45 AM

wait by "read" you mean make heads and tails of it... or to read it from the history?

prasanta 12-27-2007 03:53 AM

Quote:

I want to know, How to read a warning message from the prompt.
Combination of cut, grep etc.

--
Prasanta

karthikeyan1171 12-27-2007 05:47 AM

Quote:

Originally Posted by tommytomthms5 (Post 3002690)
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..


All times are GMT -5. The time now is 04:01 PM.