I have a simple question with you that I cannot answer myself. I have a variable below which shows a blank after printing the result.
SCRIPT:
core_out=find coretst.*
echo "$core_out"
Result: No display *blank*
#tried to echo without double quotes as well but it has the same result
btw, I'm using putty on this.
Actual objective: 1. Check core.* in /opt/datintdv/Informatica/9.6.1/server/bin --dir1 - If core.* exist and more than 1, get 1 core.* then execute strings (core.*) | grep “pmdtm(“ --script1 then store the output in a parameter if script1 did not work execute file (core filename) until all core. have been executed then store the output in a variable. - If core.* does not exist on dir1 then check /opt/datintdv/Informatica/9.6.1/tomcat/bin If core.* exist and more than 1, get 1 core.* then execute strings (core.*) | grep “pmdtm(“ --script1 then store the output in a parameter if script1 did not work execute file (core filename) until all core. have been executed then store the output in a variable. *output is separated by a new line
- Get all the output then concatenate it as the e-mail body.
- Send it to the user via e-mail. *I'm currently writing a script for this but I'm having a hard time since this is my first time to do it.
Hopefully you can help me! Thanks!