Help with Linux shell script
Guys (and girls) I have 2 monitoring Linux shell scripts. The subscript fails with: [oraclesource scripts]$ ./ggs.ksh ./ggs.ksh[12]: syntax error: `> ' unexpected Here is the script: #!/bin/ksh ######################################### #Name: ggs.ksh # #THIS SCRIPT WILL CALLED BY ggs_lag.ksh # ######################################### #alias gate='clear;cd $GGATE;./ggsci' echo "ggsksh started `date`" >> /tmp/ggs_check.log export GGATE=/u01/gg alias gate='clear;cd $GGATE;ggsci' export PATH=/u01/gg:/u01/app/oracle/product/11.2.0/db_1/bin:/usr/sbin:$ PATH cd $GGATE /u01/gg/ggsci <<> info all exit EOF echo "ggsksh completed at `date` " >> /tmp/ggs_check.log #End of script The problem is with this line: /u01/gg/ggsci <<> It is supposed to connect to ggsci API, then run "info all" within the program, then exit. But it throws the error "syntax error: `> ' unexpected " Thanks for your help. |
No comments:
Post a Comment