Non-python extraction
authorDan White <dan@whiteaudio.com>
Sun, 18 Sep 2011 02:52:13 +0000 (21:52 -0500)
committerDan White <dan@whiteaudio.com>
Sun, 18 Sep 2011 02:52:13 +0000 (21:52 -0500)
timeSampler

index 7ddb201b0357cc840e09812b9baea008fb73cb93..1fa7e0dc9a76a3a275f614ad6b6f315a41c603cd 100755 (executable)
@@ -25,7 +25,8 @@ for i in $(seq 0 $MAXJOBS); do
 done
 
 function lastActivity {
-    python -c "print ' '.join(open('$LOGFILE').readlines()[-1].split()[2:])"
+    #python -c "print ' '.join(open('$LOGFILE').readlines()[-1].split()[2:])"
+    tail -1 $LOGFILE | cut -d' ' -f3-
 }
 
 # popup without blocking main script