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

View of /ea/application.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (download) (as text) (annotate)
Mon Aug 27 11:46:35 2012 UTC (11 years, 9 months ago) by agomez
File size: 650 byte(s)
'''
Created on 18/05/2012
@author: Raul Valin
'''

import os
import time
import random
import subprocess as sub


def sub_app(master):
    cmd = '/home/cesga/bonfire/workspace/Bonfire/branch/ea_json_file/verification_bonfire_1/launch_quasimodo_manual.sh'+' '+str(random.randint(1,100))+' LOW '+ master
    print cmd
    try:
        #print 'abro popen'
        fout = sub.Popen(cmd,bufsize=-1,shell=True,stdout=sub.PIPE, stderr=sub.STDOUT,close_fds=True)
        #print 'salgo popen'
        out,err =fout.communicate(input=None)
    except ValueError, msg:
        print 'Error', msg, err
    else:
        print out
        

#sub_app('127.0.0.1')

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

Powered By FusionForge