mersenneforum.org  

Go Back   mersenneforum.org > Extra Stuff > Linux

Reply
 
Thread Tools
Old 2010-07-31, 11:19   #1
gLauss
 

2·34 Posts
Default bash script for extracting primenet-status

Hi everyone,

I just wrote a little bash script, which parses http://mersenne.org/primenet 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
  Reply With Quote
Reply

Thread Tools


Similar Threads
Thread Thread Starter Forum Replies Last Post
Script-based Primenet assignment management ewmayer Software 3 2017-05-25 04:02
Primenet status.txt Unregistered Information & Answers 2 2008-11-12 12:36
Could you help me change this into a bash script? jasong Programming 1 2007-11-29 05:59
Mersenne status.txt script? jasong Programming 4 2007-07-13 17:38
Status of PrimeNet S485122 PrimeNet 1 2006-09-24 11:51

All times are UTC. The time now is 22:47.

Sun May 9 22:47:04 UTC 2021 up 31 days, 17:27, 0 users, load averages: 3.06, 2.81, 2.71

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

This forum has received and complied with 0 (zero) government requests for information.

Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.
A copy of the license is included in the FAQ.