Im running a simple script to login to a remote server thru SSH and run a command.
#! /bin/sh +x
ssh user@server -2Y -C "(cd /RMA/prod/files/g3/area11/logs; ls -ltr)"
The script works fine but the script returns to the original host after executing the command, I want the script to execute the command without exiting on the remote server so i can run another command.
This may sound easy but it got's me a headache and I'm feeling the answer is right under my nose!
Can somebody help me, I really appreciate it!