diff --git a/opt/ahenk/base/execution/ExecutionManager.py b/opt/ahenk/base/execution/ExecutionManager.py index f8e2b0e..93d5de8 100644 --- a/opt/ahenk/base/execution/ExecutionManager.py +++ b/opt/ahenk/base/execution/ExecutionManager.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # Author: Volkan Şahin import sys -import logging +import logging,subprocess import logging.config from base.Scope import Scope @@ -27,11 +27,9 @@ class ExecutionManager(object): print("execute_script") j = json.loads(arg) msg_id =str(j['id']).lower() - file_path =str(j['filePath']).lower() + file_name =str(j['filePath']).lower() time_stamp=str(j['timestamp']).lower() - - os.system('./command.sh') #TODO - + subprocess.call("/bin/sh "+self.conf_manager.get('CONNECTION', 'receivefileparam')+file_name, shell=True) #need to move somewhere else def send_file(self,arg):