D'ar gwener 21 a viz Meurzh 2014 e 09 eur 47, « Carsten Haitzler » he deus
skrivet :
> On Wed, 19 Mar 2014 16:42:47 +0100 Bertrand Jacquin <[email protected]> said:
>
> i'll use that next time. i've dumped it into a script in $HOME there on
> git.e.org :)
I made a few changes to that script to only report write access
(git-receive-pack), and to also look in compressed logs. There were in
issue do subshell do making the script to not work:
getent passwd |
awk 'BEGIN { FS=":" }
{
if ($3 > 1000 && $3 < 9999 && $7 != "/sbin/nologin") {
print $1
}
}' |
while read ; do
{
xzcat /var/log/gitolite/gitolite-*.log.xz
cat /var/log/gitolite/gitolite-*.log
} |
awk -v REPLY="${REPLY}" 'BEGIN { LAST="never" }
{
if ($2 == REPLY && $4 == "git-receive-pack") {
LAST=$1
}
}
END { print REPLY,LAST }'
done
--
Beber
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/13534_NeoTech
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel