diff --git a/minindn/apps/application.py b/minindn/apps/application.py index 6970cb7..d7b0b87 100644 --- a/minindn/apps/application.py +++ b/minindn/apps/application.py @@ -37,7 +37,9 @@ def __init__(self, node): def start(self, command, logfile, envDict=None): if self.process is None: self.logfile = open('{}/{}'.format(self.logDir, logfile), 'w') - self.process = getPopen(self.node, command.split(), envDict, + if isinstance(command, str): + command = command.split() + self.process = getPopen(self.node, command, envDict, stdout=self.logfile, stderr=self.logfile) def stop(self):