ThreadCheck

To use this script, download it somewhere, make it executable (chmod +x ThreadCheck.sh) then run ./ThreadCheck.sh forum_address thread_extension. For example, if you’d like to check http://forums.civfanatics.com/showthread.php?t=255073, you’d write

./ThreadCheck.sh http://forums.civfanatics.com/ showthread.php?t=255073

The slash at the end of forum’s address is important, leaving it out will cause it to fail fetching the thread. The first time you run it, it will create a directory name /home/(username)/.ThreadCheck, put a file with the number of posts in that directory and open the thread in Firefox. The next times, it will check if there are more posts that the last time you ran it, and if there are, open the thread again. Otherwise, if there are no new posts, it will do nothing.

By default, ThreadCheck uses Debain alternatives system to select a browser. If your system doesn’t support alternatives or you wish to use a different browser, edit the script and replace “x-www-browser” with your favourite browser. You can also replace those lines with another notification if you wish.

The script is available for download here: ThreadCheck.sh

If you have any problems with ThreadCheck, either post a comment here, ask on the Forum< or email me on miha@noughmad.org.

Leave a comment