Sponsored Content
Full Discussion: SSH remote control question
Operating Systems Linux SSH remote control question Post 302520618 by mgsolid on Sunday 8th of May 2011 06:29:27 PM
Old 05-08-2011
Data SSH remote control question

I am pretty new to linux so forgive me for asking a basic question :P

I am using SSH to control 40 machines. What i am trying to do is remotely bash a shell script on each machine. I am using a for loop to bash every script, code as follows.


code in host machine runallworkers.sh:
Code:
...

i=1

for each $ip[] in ip[]   #just for example, i have saved all ips in a array ip[]
do
SSH -i aaa.rsa ubuntu@${ip[]} 'bash /home/ubuntu/program/runworker.sh'
echo "running worker in node $i"
let i++
done
...

code in each runworker.sh in each worker machine:
Code:
./worker.pl 7000 &
#worker.pl is a socket server program. it takes the parameter 7000 to run. it listens to port 7000

i can manually bash the runworker.sh file in each worker machine. So the worker.pl file should work fine. I can use the for loop to do other stuff on each node, so the loop should work fine too.
But the problem occurs when i run the script in the host machine, it stop responding after the first bashing, so the loop can not go on... the screen shows something like this:

Code:
ubuntu@1.1.1.1:~$ bash runallworkers.sh
running worker in node 1


please someone help me out...
Thanks in advance!!
 

5 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Remote control of cde desktop>?

Does anyone know if there is software out there top allow me to take remote control of a remote CDE desktop like using MS netmeeting? I do not mean mimick the window I mean take over/share the same session. Any help is appreciated (1 Reply)
Discussion started by: boat73
1 Replies

2. Solaris

how to login with ssh to remote system with out applying the remote root/usr password

how to login with ssh to remote system with out applying the remote root/user password with rlogin we can ujse .rhosts file but with ssh howits possible plz guide (2 Replies)
Discussion started by: tv.praveenkumar
2 Replies

3. SuSE

Installin Suse 11 - Mouse issue using Remote Control

hi guys I want to exhaust all the possibilities so I'm going to ask this here I am installing a Suse 11 on IBM Blade Center using Remote Control. when using this is impossible to use the mouse I see the mouse but I have no control over it I try to move it but no way it moves to fast s no... (3 Replies)
Discussion started by: kopper
3 Replies

4. Solaris

T3-2 Remote control Problem

Hi Peeps, Wondering if anyone can help me, trying to launch the remote console on a T3-2. When I select use serial redirection it comes up with a dialogue box that says. "The remote console application requires java 5.0. Please Download java from http://www.java.com" "Do you wish to... (1 Reply)
Discussion started by: callmebob
1 Replies

5. AIX

Need to remote control client's ssh session

Is there a way that I can remotely control a user's ssh session so I can see what they are doing and walk them through the problem they are having on my AIX based application? (2 Replies)
Discussion started by: De@nneG
2 Replies
worker(1)						      General Commands Manual							 worker(1)

NAME
worker - file manager for the X Window System SYNOPSIS
worker [options] worker [directory1[ directory2]] DESCRIPTION
worker is a graphical file manager for the X Window System. It uses the classical two-panel view of the files and directories. It has many internal operations while any external program can also be used for operating on the selected items. You can easily add actions to filetypes or buttons with the builtin configuration program. For details read the documentation available at the Worker homepage (see below). OPTIONS
-h, --help This shows a little help about options and quits immediately -V, --version This shows the program version Any other argument will be interpreted as directory to show on the left side. A second argument can be a directory to show on the right side. SIGNALS
SIGUSR1 causes Worker to stop executing the command list, useful when stuck in an endless loop. ENVIRONMENT
WORKER_XEDITOR overrides the editor used by Worker in the default configuration. FILES
~/.worker Worker's configuration directory. LICENSE
This program is distributed under the terms of the GNU General Public License V2 or later as published by the Free Software Foundation. AVAILABILITY
The latest version and online documentation can be found at http://www.boomerangsworld.de/worker AUTHOR
Ralf Hoffmann <ralf@boomerangsworld.de> Worker file manager February 11, 2008 worker(1)
All times are GMT -4. The time now is 04:40 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy