Something for Linux/Unix users:
First, make script make_sig.sh with
---begin---
tail -n1 /path/to/file/results.txt | perl -ne 'if (/Iteration\s(\d+)...(\d{8})/){print "-- \nThe Great Internet Mersenne Prime Search\n http://www.mersenne.org\n ",sprintf("%.2f", 100*$1/$2), "% done."}'
---end---

then chmod +x make_sig.sh

then:

crontab -e, then
*/10 * * * * /path/to/file/make_sig.sh > /path/to/file/sig_mersenne

and after 10 minutes we have nice sig_mersenne to select in mail reader, with text like below, which is updated automagicly every 10 minutes.

ps. This is the version for work with 10 mln digits only. If you want it to work with smaller numbers change d{8} for d+

--
The Great Internet Mersenne Prime Search
        http://www.mersenne.org
              21.49% done.
_______________________________________________
Prime mailing list
[email protected]
http://hogranch.com/mailman/listinfo/prime

Reply via email to