I browsed the forums but i couldn't find the best answer.so,i'm posting here again..
I have a parent bash script which calls another child script and the child script is used to deploy the tar file using weblogic deployer.
The script is used to display the output on the console and sent to a log file as well.
My problem is how can i display any error message in the output in a red color on the console?
It would be great if the errors in the log are also shown in red color.The errors could be from the weblogic deployer or from the scripts.
we use this for deploying the war.
HTML Code:
${JAVA_PATH}/java -classpath ${WEBLOGIC_HOME}/server/lib/weblogic.jar weblogic.Deployer
-adminurl ${WEBLOGIC_ABC_ADMIN_URL} -user ${WEBLOGIC_USERNAME} -password
$WEBLOGIC_PASSWORD -deploy -targets ${CLUSTER} -name ${RESOURCE_WEB_CONTEXT}
-upload $WORK_DIR/artifacts/webapp/components/${CONTEXT}-1.0.0-c.war
Appreciate your help in advance.
Thanks
-Ramesh