projects
/
7seg
/
.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix crash, and improve makefile
[7seg/.git]
/
camwho
1
#!/bin/bash
2
3
OLD_PERVS=
4
PERVS=
5
PORT=7000
6
7
while [ 1 -eq 1 ];
8
do
9
PERVS=`grep -E '(webcam HTTP|Webcams HTTP)' /var/log/apache2/access.log | \
10
grep ' 200 ' | \
11
sed 's/\].*$/]/' | \
12
sed 's/ \[.*$//' | \
13
sed 's/^.*- //' | \
14
tail`
15
if [ "$OLD_PERVS" != "$PERVS" ];
16
then
17
OLD_PERVS=$PERVS
18
echo $PERVS | nc nullsleep $PORT
19
fi
20
sleep 1
21
done