give the timeout a default value. fixes everything that uses shell_command_token_* with one arg
git-svn-id: file:///home/svn/framework3/trunk@11800 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
aa859e2f68
commit
f647088fba
|
@ -88,7 +88,7 @@ module SingleCommandShell
|
|||
# Explicitly run a single command and return the output.
|
||||
# This version uses a marker to denote the end of data (instead of a timeout).
|
||||
#
|
||||
def shell_command_token_unix(cmd,timeout)
|
||||
def shell_command_token_unix(cmd, timeout=10)
|
||||
# read any pending data
|
||||
buf = shell_read(-1, 0.01)
|
||||
token = ::Rex::Text.rand_text_alpha(32)
|
||||
|
@ -103,7 +103,7 @@ module SingleCommandShell
|
|||
# Explicitly run a single command and return the output.
|
||||
# This version uses a marker to denote the end of data (instead of a timeout).
|
||||
#
|
||||
def shell_command_token_win32(cmd,timeout)
|
||||
def shell_command_token_win32(cmd, timeout=10)
|
||||
# read any pending data
|
||||
buf = shell_read(-1, 0.01)
|
||||
token = ::Rex::Text.rand_text_alpha(32)
|
||||
|
|
Loading…
Reference in New Issue