mersenneforum.org

mersenneforum.org (https://www.mersenneforum.org/index.php)
-   Linux (https://www.mersenneforum.org/forumdisplay.php?f=39)
-   -   bash script for extracting primenet-status (https://www.mersenneforum.org/showthread.php?t=13675)

gLauss 2010-07-31 11:19

bash script for extracting primenet-status
 
Hi everyone,

I just wrote a little bash script, which parses [URL]http://mersenne.org/primenet[/URL] and saves the status to a file. It may be useful for others, too.

[code]
#!/bin/bash

file="/home/mersenne/primenetStatus/$(date +%F_%k:%M)"
curl http://mersenne.org/primenet/ | grep '^[0-9\ ]*|' > $file
[/code]


All times are UTC. The time now is 17:00.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2022, Jelsoft Enterprises Ltd.