G
GU
Hi,
currently we've a lot of scripts, but don't know how often each one is
used.
To clean up those jumble of scripts i wanna log the timestamp a script
is used.
For that i like to do something like this:
system "echo $0 `date` >> /tmp/script_used.log";
but WITHOUT modifing each skript itself.
i would imagine two ways:
1) set of environment to tell perl to do something like that (but
which setting would do that?, alias would not work --> different users
- different shells)
2) recompilation of perl (but i havn't compiled perl jet and don't
know how to do that)
Is there a way to do this?
thx
Gerhard
currently we've a lot of scripts, but don't know how often each one is
used.
To clean up those jumble of scripts i wanna log the timestamp a script
is used.
For that i like to do something like this:
system "echo $0 `date` >> /tmp/script_used.log";
but WITHOUT modifing each skript itself.
i would imagine two ways:
1) set of environment to tell perl to do something like that (but
which setting would do that?, alias would not work --> different users
- different shells)
2) recompilation of perl (but i havn't compiled perl jet and don't
know how to do that)
Is there a way to do this?
thx
Gerhard