The Hidden Blog

As it turns out, I do have a hostname.

Fixing things - the ugly way

Published on March 4, 2014

Because 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.

The End.