Merge pull request #965 from dhozac/cowsay-no-shell
Invoke cowsay without going through the shellpull/4420/head
commit
7bb9f71a7e
|
@ -121,8 +121,8 @@ def regular_generic_msg(hostname, result, oneline, caption):
|
|||
def banner(msg):
|
||||
|
||||
if cowsay != None:
|
||||
cmd = subprocess.Popen("%s -W 60 \"%s\"" % (cowsay, msg),
|
||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE, shell=True)
|
||||
cmd = subprocess.Popen([cowsay, "-W", "60", msg],
|
||||
stdout=subprocess.PIPE, stderr=subprocess.PIPE)
|
||||
(out, err) = cmd.communicate()
|
||||
return "%s\n" % out
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue