[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[or-cvs] [torflow/master] Fix CWD issues with BeautifulSoup and other libs.



Author: Mike Perry <mikeperry-git@xxxxxxxxxx>
Date: Wed, 6 Oct 2010 16:28:50 -0700
Subject: Fix CWD issues with BeautifulSoup and other libs.
Commit: 8543600a4af4ff460cc69ef4993a0ed2860d8354

---
 NetworkScanners/ExitAuthority/cron.sh |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)

diff --git a/NetworkScanners/ExitAuthority/cron.sh b/NetworkScanners/ExitAuthority/cron.sh
index 87c4f34..5472457 100755
--- a/NetworkScanners/ExitAuthority/cron.sh
+++ b/NetworkScanners/ExitAuthority/cron.sh
@@ -1,6 +1,7 @@
 #!/bin/bash
 
 SCANDIR=~/code/torflow.git/NetworkScanners/ExitAuthority/
+cd $SCANDIR
 
 # 1. Email results to addresses in soat_config.py (--email)
 # 2. Ignore timeout errors (--noreason FailureTimeout)
@@ -8,10 +9,10 @@ SCANDIR=~/code/torflow.git/NetworkScanners/ExitAuthority/
 # 4. Only report from urls that fail from less than 10% of the total
 #    exits tested so far. (--siterate 10)
 # 5. Only report exits that fail 100% of their tests (--exitrate 99)
-$SCANDIR/snakeinspector.py --email --exitrate 99 --siterate 10 --croninterval 1
+./snakeinspector.py --email --exitrate 99 --siterate 10 --croninterval 1
 
 # Optionally, you can use these two lines to allow less regular cron
 # scheduling:
 
-#$SCANDIR/snakeinspector.py --confirmed --email --noreason FailureTimeout --siterate 3 --finishedafter "`cat $SCANDIR/lastmail.time`"
+#./snakeinspector.py --confirmed --email --noreason FailureTimeout --siterate 3 --finishedafter "`cat $SCANDIR/lastmail.time`"
 #date +"%a %b %d %H:%M:%S %Y" > $SCANDIR/lastmail.time
-- 
1.7.1