command.py 249 B

1234567891011
  1. from core import Neurone
  2. import subprocess
  3. class Command(Neurone):
  4. def __init__(self, command):
  5. Neurone.__init__(self)
  6. p = subprocess.Popen(command, stdout=subprocess.PIPE, shell=True)
  7. (output, err) = p.communicate()