I want to email where subject contains value of variable $ORACLE_SID.
When script is emailing, it is not taking value of $ORACLE_SID.
example -
I have variable ORACLE_SID=prd
I am sending email with below script.
tail -1 $LOG | mailx -s 'Export Completed for ${ORACLE_SID}' myemailid@server.com
Actual Result -->
I am getting email with subject - "Export Completed for ${ORACLE_SID}"
Expected Result -->
I am expecting email with subject - "Export Completed for prd"
Thanks
Deep