# End of configuration
########################
+thispid=$$
+echo "$thispid" > ~/.timeSampler.pid
+
#index of the last buffer entry
BUFFER_END=$(($MAXJOBS-1))
fi
echo "$DATE $ACTIVITY" >> $LOGFILE
+ echo "$DATE $ACTIVITY"
echo "$HOSTNAME $DATE $ACTIVITY" >> $BACKUPFILE
}
done
buffer[$BUFFER_END]=$pid
+ echo ${buffer[@]}
+
# Kill the oldest dialog box (which is runnng as a child of the oldest
# subshell, resulting in a "null" entry in the logfile.
for j in `jobs -p`; do
-thispid=$$
-echo "$thispid" > ~/.timeSampler.pid
-
while true; do
if [[ $(lastActivity) != "null" ]]; then
$BEEP > /dev/null 2>&1