[ale] screen -d -m

Geoffrey esoteric at 3times25.net
Thu Apr 13 09:00:59 EDT 2006


Dow Hurst wrote:
> I found a nice trick.  I wanted to run a python program called Modeller 
> that generates protein structures from templates.  Not important to 
> y'all, but the point is that it is a program that somewhere was starting 
> something that wouldn't go into the background.  I was trying to start 
> multiple instances across a cluster using a script.  Each node needed 
> two ssh commands to start two instances of Modeller.  This true 
> embarrassing parallellism at it's best!
> 
> My example:
> 
> #!/bin/bash
> CWD=`pwd`
> ssh node001a "cd $CWD/01;mod8v2 01_vary_loop.py &"
> ssh node001a "cd $CWD/02;mod8v2 02_vary_loop.py &"
> ssh node002a "cd $CWD/03;mod8v2 03_vary_loop.py &"
> 
> and so on up to 40.
> 
> Well, the first ssh statement would not go into the background with a 
> "&" at the end, or a "2>&1 ./log &" at the end.

Dow, although you found a solution, check out the '-f' option to ssh.


-- 
Until later, Geoffrey

Any society that would give up a little liberty to gain a little
security will deserve neither and lose both.  - Benjamin Franklin



More information about the Ale mailing list