Need help with shell scripts
Hi,
How do I write a shell script that logs me into a remote machine, executes commands on the remote machine and then exits and returns me to my local machine prompt? (I have setup ssh to allow key authentication.) Any help would be awesome!! thanks |
Something like this?
Code:
#!/bin/bash Cheers, Tink |
Ya I guess. So I take it that any commands that are in quotes get executed on the remote machine!?
|
That's right. If it's only a single command you can skip the
quotes, too. Cheers, Tink |
Thanks Tinkster
|
All times are GMT -5. The time now is 06:07 AM. |