The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com



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
rsh to change multiple ip in multiple servers? kenshinhimura Shell Programming and Scripting 2 02-18-2008 03:04 AM
How do I make multiple connections to the server in this case frequency8 Shell Programming and Scripting 0 07-21-2007 11:05 PM
User add on multiple servers sandeep_pan Shell Programming and Scripting 6 06-10-2005 05:04 PM
Apache Config> One IP, Multiple Servers l008com UNIX for Advanced & Expert Users 7 09-15-2003 09:54 AM
ftp to multiple servers kristy Shell Programming and Scripting 2 12-03-2001 03:49 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 08-11-2008
Moxy Moxy is offline
Registered User
  
 

Join Date: Apr 2008
Posts: 14
Plink connections to multiple unix servers

Hi,

I have a simple windows batch file which connects to a UNIX server and runs a shell script in my home directory on the server.
It works perfectly, using plink + ssh keys in the background.

What I plan to do is expand this batch file to connect to multiple servers and execute one script on each server.

Has anyone any opinions or feedback on this plan?
  #2 (permalink)  
Old 08-27-2008
patx patx is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 2
I am looking at doing the same thing...

I made a simple BAT file that send a file with PSCP and a command with PLINK, it works fine but it hangs after PLINK...

What i would like to do is:

PSCP --- dreambox1
PLINK --- dreambox1
PSCP --- dreambox2
PLINK --- dreambox2
PSCP --- dreambox3
PLINK --- dreambox3

Thankx
  #3 (permalink)  
Old 08-28-2008
patx patx is offline
Registered User
  
 

Join Date: Aug 2008
Posts: 2
I got it working it was a timeout problem...

to get trough this problem i PSCP a SH script along with my file with the timeout cmd then used plink to start the SH script.

PSCP --- dreambox1--- file
PSCP --- dreambox1--- SH
PLINK --- dreambox1--- start SH
PSCP --- dreambox2--- file
PSCP --- dreambox2--- SH
PLINK --- dreambox2--- start SH
PSCP --- dreambox3--- file
PSCP --- dreambox3--- SH
PLINK --- dreambox3--- start SH

Last edited by patx; 08-28-2008 at 09:49 PM..
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 08:05 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0