Log In | Get Help   
Home My Page Projects Code Snippets Project Openings BonFIRE VCOC Demonstration Kit
Summary Activity SCM Files Wiki
[bonfiredemokit] Annotation of /ea/application.py
[bonfiredemokit] / ea / application.py Repository:
ViewVC logotype

Annotation of /ea/application.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 9 - (view) (download) (as text)

1 : agomez 9 #
2 :     # BonFIRE Virtual Clusters on Federated Clouds Demonstration Kit
3 :     #
4 :     # Copyright (c) Fundacion Centro Tecnologico de Supercomputacion de Galicia 2012
5 :     #
6 :     # License GPL Version 3
7 :     #
8 :     # The research leading to these results has received funding from
9 :     # the European Community's Seventh Frameqork Programme (FP7/2007-2013)
10 :     # under agreement number 257386
11 :     #
12 :     # This software is provided with ABSOLUTELY NO WARRANTY
13 :     #
14 : agomez 1 '''
15 :     Created on 18/05/2012
16 :     @author: Raul Valin
17 :     '''
18 :    
19 :     import os
20 :     import time
21 :     import random
22 :     import subprocess as sub
23 :    
24 :    
25 :     def sub_app(master):
26 :     cmd = '/home/cesga/bonfire/workspace/Bonfire/branch/ea_json_file/verification_bonfire_1/launch_quasimodo_manual.sh'+' '+str(random.randint(1,100))+' LOW '+ master
27 :     print cmd
28 :     try:
29 :     #print 'abro popen'
30 :     fout = sub.Popen(cmd,bufsize=-1,shell=True,stdout=sub.PIPE, stderr=sub.STDOUT,close_fds=True)
31 :     #print 'salgo popen'
32 :     out,err =fout.communicate(input=None)
33 :     except ValueError, msg:
34 :     print 'Error', msg, err
35 :     else:
36 :     print out
37 :    
38 :    
39 :     #sub_app('127.0.0.1')

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge