I keep my PC running at home. Sometimes, when I'm at work, my PC can't load the pages that I want to load. I have to ssh to it, and reboot/restart browser. It's really annoying and I'm trying to find an easier way to do this. I thought about getting a screenshot and somehow try to check if it looks like a 404 page that I took screenshot before. But that may use my system resources a bit much.
I tried to catch the title of the page with
xdotool, but it fails.
Is there a way of detecting 404 pages? I'm using chromium-browser with Ubuntu. Those webpages are not accessible from my computer because of my internet connection/computer. The webpage is always on, but sometimes, because of connection problems, browser shows 404 with that tiny dinosaur. This is my xdotool code:
#!/usr/local/bin/xdotool a=`xdotool search "http://a.com is not available - Chromium" | head -1` if [[ $a ]]; then echo "yes" else echo "nope" fi