I am running a shell script(which contains several UNIX commands) from DEV environment. Now in this shell script i need to write a unix command to connect to a QA environment and go to a particular path over there to check for some files.
i am using below command to connect to QA environment through script:
ssh QA ---- To connect to QA environment
cd a/b/c ----- To execute this command under QA environment.
when i am executing a script, it is then asking me for a password to connect to QA environment and after entering password i am able to connect to QA. BUT THE COMMAND 'cd a/b/c' IS NOT GETTING EXECUTED IN QA AFTER THAT.
Please suggest which command should i use in the unix script to connect to QA environment and execute some unix commands over there in a same script?