From 05d860c3f81614c9ae665f54b0641d0390efd4e9 Mon Sep 17 00:00:00 2001 From: g0tmi1k Date: Thu, 21 Jan 2016 23:40:50 +0000 Subject: [PATCH] Able to playback multiple log files back to back --- utils/playlog.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/utils/playlog.py b/utils/playlog.py index 4a7e9e2a..7f020e86 100755 --- a/utils/playlog.py +++ b/utils/playlog.py @@ -63,7 +63,7 @@ def playlog(fd, settings): def help(brief = 0): - print 'Usage: %s [-bfhi] [-m secs] [-w file] \n' % \ + print 'Usage: %s [-bfhi] [-m secs] [-w file] ...\n' % \ os.path.basename(sys.argv[0]) if not brief: @@ -106,11 +106,11 @@ if __name__ == '__main__': help() try: - logfd = open(args[0], 'rb') + for logfile in args: + logfd = open(logfile, 'rb') + playlog(logfd, settings) except IOError: - print "Couldn't open log file!" + print "\n\n[!] Couldn't open log file (%s)!" % logfile sys.exit(2) - playlog(logfd, settings) - # vim: set sw=4: