mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-28 10:02:43 +01:00
ff916d1b93
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
12 lines
451 B
Text
12 lines
451 B
Text
hexec (hook into exec calls)
|
|
|
|
hexec can be used to hook into exec system calls. It evaluates a user
|
|
defined expression against all hooked exec calls. This expression can
|
|
contain simple path checks (e.g. -path "*/name") and even complex bash
|
|
scripts.
|
|
|
|
As an example: hexec -name ls -exec echo {} \; bash
|
|
|
|
This will run a shell, but any time you try to run "ls", you'll run
|
|
"echo" instead. The syntax is similar to "find"; see the man page for
|
|
details.
|