Command to find the color of output text of last executed

Command to find the color of output text of last executed

Postby shajay12 » 28 Dec 2014, 13:02

Linux Command to find the color of output text of last executed command

I have one small question.

how to find the color of output text of last command executed.

suppose i execute a command.
$ itkadmin config -nwid ora2gchild -set nd.baseMomSchemaFile -edit
### its output things in green when success and red when some has went wrong
$ file not updates

I want a command that can find the color of the output of last command executed and
then i can continue if green and exit if red , with the output of last command on screen ,
so that user can check and correct the error.

I wanted the commands to run in shell script.

Thank You in Advance.
shajay12
 
Posts: 1
Joined: 28 Dec 2014, 12:56

Return to Newbie Questions

Who is online

Users browsing this forum: No registered users and 2 guests