Tag Linux

SCP and Pass Variable in Bash Script

#!/bin/bash read -p ‘Enter the Files to be Send to Remote Host: ‘ files destination_directory=’/home/oracle’ scp -i /Users/shadab/wha.pem $files oracle@192.168.1.200:$destination_directory…

Shell Script to Monitor Oracle Tablespace and Send Email Alert Only If Threshold Exceeds

export MMSG=/tmp/$$.mail export ADDR=”shadab@easyoradba.com” export ORACLE_HOME=/u01/app/oracle/product/12.1.0/dbhome_1 export ORACLE_SID=orcl file=/tmp/${$}_`date +%Y%m%d` sqlplus -s “/as sysdba” << .eof > $file set pages…