Closed ask6483 closed 7 months ago
Fix:
Update_ActivityLog_And_Run_IdleRunner() {
local timestamp=$(date '+%F %T')
local activityfile="/tmp/IdleRunnerActivityTracker.log"
[ -f $activityfile ] || touch $activityfile
echo "$timestamp" > "/tmp/IdleRunnerActivityTracker.log"
/home/ubuntu/IdleRunner/IdleRunner.sh > /dev/null
}
PROMPT_COMMAND="Update_ActivityLog_And_Run_IdleRunner"
My branch should fix this issue. Though I'll have to do a quick test later to make sure (once I get my dev env setup)
Should be fixed in recent PR that was merged
bashrc function is redirecting timestamp echo to not existing file after restart.