I am working on two servers one is oracle database and another is linux , first of all i exported path of oracle server and later i want to process the output and it is showing bash command not found error , I tried with exporting bash profile too Below is what i have done as far :
#!/bin/bash
export ORACLE_HOME=/Oracle/app/oracle/product/11.2.0.2/db_1
export PATH=/Oracle/app/oracle/product/11.2.0.2/db_1/bin:.
sqlplus system@xe/oracle123 << EOF >home/cron.log
@/home/test.sql > /home/zoutput/test.txt
EOF
echo "This is test"
error: syntax error near unexpected token `"This is test"'
#!/bin/bash
export ORACLE_HOME=/Oracle/app/oracle/product/11.2.0.2/db_1
export PATH=/Oracle/app/oracle/product/11.2.0.2/db_1/bin:.
sqlplus system@xe/oracle123 << EOF >home/cron.log
@/home/test.sql > /home/zoutput/test.txt
EOF
echo("This is test")
cut -c-3 /Backend/home/zoutput/test.txt|sort |uniq
>/Backend/home/zoutput/test2.txt
ERROR cut,sort,uniq command not found