Need auto prompt (yes/no) in a script !
Dear Friends ,
I write a script to kill a oracle impdp job like below :
--
[oracle@rptsvr ~]$ cat kill_job.sh
export ORACLE_HOME=/u01/app/oracle/product/10.2.0/db_1
export ORACLE_SID=PBLPRIM
impdp ultimus/ultimus_123 attach=SYS_IMPORT_FULL_02 << !
kill_job
--
After run the script it needs to manual entry , 'yes' or 'no' .
like :
Import> Are you sure you wish to stop this job ([yes]/no): UDI-00005: unexpected End-Of-File encountered
while reading input.
Now I want this script will be killed prompting 'yes' command automatically , not manually .
Hope My question is clear .
Please help me regarding this .
|