Commit 059ff55d authored by Bastian Reitemeier's avatar Bastian Reitemeier

Added -q option to the USAGE string in execsnoop. Added -q option to the manpage for execsnoop

parent 9345df11
...@@ -30,6 +30,10 @@ Include a timestamp column. ...@@ -30,6 +30,10 @@ Include a timestamp column.
\-x \-x
Include failed exec()s Include failed exec()s
.TP .TP
\-q
Add "quotemarks" around arguments. Escape quotemarks in arguments with a
backslash. For tracing empty arguments or arguments that contain whitespace.
.TP
\-n NAME \-n NAME
Only print command lines matching this name (regex) Only print command lines matching this name (regex)
.TP .TP
...@@ -52,6 +56,10 @@ Include failed exec()s: ...@@ -52,6 +56,10 @@ Include failed exec()s:
# #
.B execsnoop \-x .B execsnoop \-x
.TP .TP
Put quotemarks around arguments.
#
.B execsnoop \-q
.TP
Only trace exec()s where the filename contains "mount": Only trace exec()s where the filename contains "mount":
# #
.B execsnoop \-n mount .B execsnoop \-n mount
......
...@@ -31,6 +31,7 @@ examples = """examples: ...@@ -31,6 +31,7 @@ examples = """examples:
./execsnoop # trace all exec() syscalls ./execsnoop # trace all exec() syscalls
./execsnoop -x # include failed exec()s ./execsnoop -x # include failed exec()s
./execsnoop -t # include timestamps ./execsnoop -t # include timestamps
./execsnoop -q # add "quotemarks" around arguments
./execsnoop -n main # only print command lines containing "main" ./execsnoop -n main # only print command lines containing "main"
./execsnoop -l tpkg # only print command where arguments contains "tpkg" ./execsnoop -l tpkg # only print command where arguments contains "tpkg"
""" """
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment