Loading cccli/cli.py +6 −2 Original line number Diff line number Diff line Loading @@ -115,9 +115,13 @@ class Cli(object): def _exec_command(self, argv): '''Execute command''' self.printer.debug("argv: %s"%argv) try: if (argv[0] == "!"): p = subprocess.Popen(argv[1:], close_fds=True, shell=True) if (argv[0][0] == "!"): argv[0] = argv[0][1:] if not len(argv[0]): return p = subprocess.Popen(argv, close_fds=True, shell=True) p.wait() ret = p.returncode elif (argv[0] == "?"): Loading Loading
cccli/cli.py +6 −2 Original line number Diff line number Diff line Loading @@ -115,9 +115,13 @@ class Cli(object): def _exec_command(self, argv): '''Execute command''' self.printer.debug("argv: %s"%argv) try: if (argv[0] == "!"): p = subprocess.Popen(argv[1:], close_fds=True, shell=True) if (argv[0][0] == "!"): argv[0] = argv[0][1:] if not len(argv[0]): return p = subprocess.Popen(argv, close_fds=True, shell=True) p.wait() ret = p.returncode elif (argv[0] == "?"): Loading