[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
screen -X
From: |
Jim Lloyd |
Subject: |
screen -X |
Date: |
Wed, 3 Dec 2008 15:32:10 -0800 |
I'd like to so something that I bet savvy unix admins do all the time
with screen, but I haven't figured out the trick.
I have a shell script that lets me do this:
$ each <command>
The script expands this running the same command on several machines:
$ ssh host1 <command>
$ ssh host2 <command>
...
$ ssh hostN <command>
The script basically works fine, but it executes the commands
serially. For long running commands, I'd like to run them in parallel.
Ideally I'd run them in a detached screen session on each machine. The
ssh command should execute just long enough to start the long running
command in a detached screen session.
The -X option seems like it's intended for this purpose, but it seems
to be a no-op. The man page says "Note that this command doesn't work
if the session is password protected." To my knowledge the session is
not password protected, but perhaps I am misunderstanding this.
Is there some simple recipe for using ssh to execute a command in a
detached screen on another host?
Thanks,
Jim Lloyd
- screen -X,
Jim Lloyd <=
- Re: screen -X, Micah Cowan, 2008/12/04
- Re: screen -X, Trent W. Buck, 2008/12/04
- Re: screen -X, Pia Mikeal, 2008/12/04
- Re: screen -X, Trent W. Buck, 2008/12/04
- Re: screen -X, Michael Grant, 2008/12/04
- Re: screen -X, Dan Mahoney, System Admin, 2008/12/04
- Re: screen -X, Micah Cowan, 2008/12/06
- Re: screen -X, Dan Mahoney, System Admin, 2008/12/06
- Re: screen -X, Micah Cowan, 2008/12/06
Re: screen -X, Bernard Pratz, 2008/12/05