Fixing things - the ugly way
Published on Mar 04, 2014Because sometimes it's just easier to find a dirty workaround than actually fixing the underlying problem.
The 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.
The fix:
*/5 * * * * /home/dewey/fixcookies.sh > /dev/null 2>&1
Don't forget to make the script executable with chmod +x fixcookies.sh
.
{{< gist dewey 9346561 >}}
The End.