xentaur

diff xentaur.py @ 7:825cd93472de

Dodelal
author igor
date Thu Aug 02 20:46:09 2007 +0300 (2007-08-02)
parents e4d8da085a2e
children 88a212771d27
line diff
     1.1 --- a/xentaur.py	Sun Jul 15 14:37:16 2007 +0300
     1.2 +++ b/xentaur.py	Thu Aug 02 20:46:09 2007 +0300
     1.3 @@ -32,11 +32,12 @@
     1.4  
     1.5  def create_screens_script():
     1.6  
     1.7 -    N=0
     1.8 +    N=1
     1.9      screens=[]
    1.10      for domain in domains:
    1.11 -        ip="192.168.80."+str(200+N)
    1.12 -        screens.append("screen -t "+domain+"   "+str(N)+" sh -c 'while true; do ssh root@"+ip+" ; done'")
    1.13 +        screens.append("screen -t "+domain+"   "+str(N)+" xm console "+domain)
    1.14 +#        ip="192.168.80."+str(200+N)
    1.15 +#        screens.append("screen -t "+domain+"   "+str(N)+" sh -c 'while true; do ssh root@"+ip+" ; done'")
    1.16          N+=1
    1.17      screenlist="\n".join(screens)
    1.18