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