Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 13 lines (11 sloc) 365 Bytes
#!/bin/bash
export LANG="en_GB.UTF-8"
cd ~/project/uykfg
source env/bin/activate
PYTHONPATH=src python3 src/uykfg/scan.py $@ > ~/log/uykfg-scan.log 2>&1
PYTHONPATH=src python3 src/uykfg/link.py > ~/log/uykfg-link.log 2>&1
CNX=`egrep "cache (expired|miss) " ~/log/uykfg-scan.log ~/log/uykfg-link.log | wc -l`
if [[ $CNX -gt 0 ]]
then
echo "$CNX connections"
fi