I have been trying to implement .sh file which opens the RMAN promt and shows the backup summary of last database backups.
Script
[apex@idmhost ~]$ cat b1.sh
ls
rman target / catalog rman/rman123@apexdb
list backup summary;
Output
sh b1.sh
0 db.rsp Music script_bkp.sh Templates
apache.env Desktop Pictures scripts test
apexdb.env Documents Public sendattatch.py Videos
b1.sh Downloads rman_backup.sh Softwares
Recovery Manager: Release 12.1.0.2.0 - Production on Thu Feb 7 12:50:06 2019
Copyright (c) 1982, 2014, Oracle and/or its affiliates. All rights reserved.
connected to target database: APEXDB (DBID=2757487913)
connected to recovery catalog database
RMAN>
As you can see It's executing that linux command & connecting to RMAN as well. But the third one is not getting executed. Where is it stuck?