Skip to content

Commit

Permalink
Added -q option to the USAGE string in execsnoop. Added -q option to …
Browse files Browse the repository at this point in the history
…the manpage for execsnoop
  • Loading branch information
Bastian Reitemeier committed Apr 8, 2018
1 parent 9345df1 commit 059ff55
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions man/man8/execsnoop.8
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ Include a timestamp column.
\-x
Include failed exec()s
.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
Only print command lines matching this name (regex)
.TP
Expand All @@ -52,6 +56,10 @@ Include failed exec()s:
#
.B execsnoop \-x
.TP
Put quotemarks around arguments.
#
.B execsnoop \-q
.TP
Only trace exec()s where the filename contains "mount":
#
.B execsnoop \-n mount
Expand Down
1 change: 1 addition & 0 deletions tools/execsnoop.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
./execsnoop # trace all exec() syscalls
./execsnoop -x # include failed exec()s
./execsnoop -t # include timestamps
./execsnoop -q # add "quotemarks" around arguments
./execsnoop -n main # only print command lines containing "main"
./execsnoop -l tpkg # only print command where arguments contains "tpkg"
"""
Expand Down

0 comments on commit 059ff55

Please sign in to comment.