i got the script as bellow
sqlplus "/as sysdba" <<!
when i run it from $ prompt it does the activity upto exit but it does not run lsnrctl.
on 01/01/2010 – Made popular on 01/01/2010
I'm trying to connect to a remote linux machine and get an output text via ganymed ssh2 It works perfect with standart commands like "ls -la" or "ps -ef |grep pmon" but not with "lsnrctl status" or "sqlplus / as sysdba".
I know this question has been fielded before and have found said posts and knowledge base entries but none of them seem to work for me... Running Ubuntu 14.04, yes, I can 'sudo stop lightdm' to exit X, but that doesn't bring me to a shell prompt.