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 1 - (view) (download) (as text)

1 : agomez 1 '''
2 :     Created on 18/05/2012
3 :     @author: Raul Valin
4 :     '''
5 :    
6 :     import os
7 :     import time
8 :     import random
9 :     import subprocess as sub
10 :    
11 :    
12 :     def sub_app(master):
13 :     cmd = '/home/cesga/bonfire/workspace/Bonfire/branch/ea_json_file/verification_bonfire_1/launch_quasimodo_manual.sh'+' '+str(random.randint(1,100))+' LOW '+ master
14 :     print cmd
15 :     try:
16 :     #print 'abro popen'
17 :     fout = sub.Popen(cmd,bufsize=-1,shell=True,stdout=sub.PIPE, stderr=sub.STDOUT,close_fds=True)
18 :     #print 'salgo popen'
19 :     out,err =fout.communicate(input=None)
20 :     except ValueError, msg:
21 :     print 'Error', msg, err
22 :     else:
23 :     print out
24 :    
25 :    
26 :     #sub_app('127.0.0.1')

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

Powered By FusionForge