![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Bash Script to check Remote Host Connection | zulfikarmd | UNIX for Dummies Questions & Answers | 5 | 04-16-2008 06:53 AM |
| Sending Commands to a Remote Host | safetytrick | UNIX for Dummies Questions & Answers | 3 | 08-18-2007 06:29 PM |
| How can my unix shell script automatically connect to remote host? | digdarshan | Shell Programming and Scripting | 8 | 06-29-2007 11:44 PM |
| How to delete the files from local host to remote host | krishna176 | SUN Solaris | 3 | 03-24-2007 04:48 PM |
| QNX host cannot ping SCO host, vice versa | gavon | IP Networking | 2 | 08-20-2001 08:57 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
Run a shell script from one host which connext to remote host and run the commands
I want to write a script which would run from one host say A and connect to other remote host B and then run rest of commands in that host. I tried connecting from A host to B with SSH but after connecting to host B it just getting me inside Host B command prompt. Rest of the script is not running after ssh is executed...
Any help appreciated ![]() |
|
|||||
|
or you could ssh like this:
Code:
$ ssh machinename command Code:
$ ssh sunhost "uname -n" |
|
||||
|
I used ssh hostname "command " and it does work for me if its a single command. But then there is a bunch of commands. let say I need to go to a specific folder in the remote host and then have to run some commands and so on ...... so how can I do that
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|