From 21b2795c9c375fcf99645d2a05ddd14a0dcbd4fe Mon Sep 17 00:00:00 2001 From: David Trail Date: Mon, 19 Mar 2012 00:21:00 +0100 Subject: [PATCH] Needs to chdir to run as a cron job --- shreddit | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/shreddit b/shreddit index 6da7ed8..b385187 100755 --- a/shreddit +++ b/shreddit @@ -1,9 +1,12 @@ #!/bin/sh +ROOT_DIR="/home/$USER/Shreddit" +cd $ROOT_DIR + echo "Running grab.py to get your history..." -python2 grab.py || exit 1 +python2 $ROOT_DIR/grab.py || exit 1 echo "Running kill.py to annihilate your history..." -python2 kill.py || exit 2 +python2 $ROOT_DIR/kill.py || exit 2 echo "Everything seemed to execute successfully."