SU and Standard Output

Bit of a strange one.

Have a script called rapidclone_test.sh which calls Oracle rapidclone using su -c as an oracle osuser. However, if I control+c out to the calling shell anything entered is not displayed on the terminal. Any command executes successfully though.

Why is the standard input not being directed to the screen?

Running the script ->

orakrull@vq97eda> ./rapidclone_test.sh
Password:
Oracle Corporation      SunOS 5.10      Generic Patch   January 2005
                     Copyright (c) 2002 Oracle Corporation
                        Redwood Shores, California, USA
                        Oracle Applications Rapid Clone
                                 Version 12.0.0
                      adcfgclone Version 120.31.12010000.8
Enter the APPS password :

control+c ->

orakrull@vq97eda> ./rapidclone_test.sh
Password:
Oracle Corporation      SunOS 5.10      Generic Patch   January 2005
                     Copyright (c) 2002 Oracle Corporation
                        Redwood Shores, California, USA
                        Oracle Applications Rapid Clone
                                 Version 12.0.0
                      adcfgclone Version 120.31.12010000.8
Enter the APPS password : orakrull@vq97eda>

return a few times and then ls -al ->

orakrull@vq97eda> ./rapidclone_test.sh
Password:
Oracle Corporation      SunOS 5.10      Generic Patch   January 2005
                     Copyright (c) 2002 Oracle Corporation
                        Redwood Shores, California, USA
                        Oracle Applications Rapid Clone
                                 Version 12.0.0
                      adcfgclone Version 120.31.12010000.8
Enter the APPS password : orakrull@vq97eda> orakrull@vq97eda> orakrull@vq97eda> orakrull@vq97eda> orakrull@vq97eda> orakrull@vq97eda> total 64
drwxr-xr-x   2 orakrull dba          512 Aug 15 11:27 .
drwxr-xr-x   5 orakrull dba          512 Aug 14 12:38 ..
-rwxr-xr-x   1 orakrull dba          160 Aug 15 12:10 rapidclone_test.sh

rapidclone_test.sh looks like this ->

su - orakrull -c "perl $ORACLE_BASE/appsutil/clone/bin/adcfgclone.pl dbTier"

Try typing in

stty echo

--ahamed