Fixing things - the ugly wayPublished on March 4, 2014
Because sometimes it’s just easier to find a dirty workaround than actually fixing the underlying problem.
For some unknown reason pywhatauto is replacing my working cookie file for BTN with an incomplete one. Probably due to a failed authentication with the site. (I blame Cloudflare and the ongoing DDoS). So we have a problem which occurs repeatedly. Repeatedly sounds like a perfect use case for a
cronjob to me.
*/5 * * * * /home/dewey/fixcookies.sh > /dev/null 2>&1
Don’t forget to make the script executable with
chmod +x fixcookies.sh.