Show More
@@ -199,7 +199,7 b' def jobctrl_shellcmd(ip,cmd):' | |||
|
199 | 199 | """ os.system replacement that stores process info to db['tasks/t1234'] """ |
|
200 | 200 | cmd = cmd.strip() |
|
201 | 201 | cmdname = cmd.split(None,1)[0] |
|
202 | if cmdname in shell_internal_commands: | |
|
202 | if cmdname in shell_internal_commands or '|' in cmd or '>' in cmd or '<' in cmd: | |
|
203 | 203 | use_shell = True |
|
204 | 204 | else: |
|
205 | 205 | use_shell = False |
General Comments 0
You need to be logged in to leave comments.
Login now