source: n4d-epoptes-client/trunk/fuentes/install-files/usr/share/n4d/python-plugins/EpoptesClient.py @ 4076

Last change on this file since 4076 was 4076, checked in by hectorgh, 2 years ago

moving os to subprocess

File size: 357 bytes
Line 
1import subprocess
2import os
3
4class EpoptesClient:
5       
6        def startup(self,options):
7               
8                if options["controlled"]:
9                        if options["boot"]:
10                               
11                                if os.system("host server > /dev/null")==0:
12                                        p=subprocess.Popen(["epoptes-client -c"],shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE)
13                                        p.communicate()
14                       
15               
16        #def startup
17       
18#class EpoptesClient
19
Note: See TracBrowser for help on using the repository browser.