P
patrisha
I would like to capture all fork/execve's that a perl script executes.
In more detail,what I would like to do is capture all the various
methodes scripts can use to run system commands. So if someone does
something like.
use shell qw(echo);
echo "hello";
In the background I would like to capture fork/execve for the echo,
do some "stuff" and then let perl do its normal thing. Ultimately I
would like to grab a copy of the output log and potentially redirect
logs to /dev/null for some special cases.
I have searched and read until I am blue in the face but don't see a
way to capture all the possible ways a script might fork off another
process without doing something evil like overriding the fork system
call with my own.
Thanks in advance for any help
Patricia
In more detail,what I would like to do is capture all the various
methodes scripts can use to run system commands. So if someone does
something like.
use shell qw(echo);
echo "hello";
In the background I would like to capture fork/execve for the echo,
do some "stuff" and then let perl do its normal thing. Ultimately I
would like to grab a copy of the output log and potentially redirect
logs to /dev/null for some special cases.
I have searched and read until I am blue in the face but don't see a
way to capture all the possible ways a script might fork off another
process without doing something evil like overriding the fork system
call with my own.
Thanks in advance for any help
Patricia