Originally Posted by knghtz
Sorry I guess that would help:
scp blah blah
The problem is once it gets onto the server it just stops there. I threw a pwd after the ssh to verify but it doesn't do that either. I'm sure it's a simple fix I'm just having problems locating an answer.
But the commands in your script aren't executed remotely, they are executed locally -- but only after the script exits the "ssh" line.
Did you think the script was transferred to the remote server and executed its remaining lines there?
Try this example:
echo "line 1: located at `hostname`"
echo "Line 3: located at `hostname`"
This script gets to line 2, logs onto the remote server, and awaits your input. If you exit the remote session, you will see line 3 get printed -- locally.