Hey all, not sure if any of you will know this or not, but here is my dilemma:
We login to a network of servers connected by LDAP. Most of the time my scripts login, grab something, store it in my local directory and exit the remote server. We run an ASP service and sometimes I have to login and watch our server logs to find a problem. So I've written the most simple script that reads in the server you want to go to and then ssh's to the server, and changes the directory to the log directory. The problem is that it doesn't leave me in that server. I want the script to end and I'll be on the other server in the log directory so I can pick my log and tail it.
Looks like this:
echo "Enter Server ID"
read server
ssh -t as-$server "
cd /opt/oracle/restofpathtoOraclelogs
"
No exit, no nothing. But when the script completes, it dumps me back to the original server I logged into.
Any ideas?