Bitcoin Forum
November 20, 2017, 07:39:36 AM *
News: Latest stable version of Bitcoin Core: 0.15.1  [Torrent].
 
   Home   Help Search Donate Login Register  
Pages: [1]
  Print  
Author Topic: randomly open random threads  (Read 343 times)
reipay
Newbie
*
Offline Offline

Activity: 15



View Profile
March 24, 2013, 11:06:53 AM
 #1

Just for fun, a bash script that randomly opens your browser with a random thread of this forum at a random time:
Code:
#!/bin/bash
#Edit this for setting the correct browser:
browser=chromium-browser
while sleep $(($RANDOM/100))
do $browser https://bitcointalk.org/index.php?topic=$RANDOM
done
This should work nicely at any environment where $RANDOM returns a random number with a length from three to five. So I think it should work at any POSIX-compliant system if it has bash installed.
Pages: [1]
  Print  
 
Jump to:  

Sponsored by , a Bitcoin-accepting VPN.
Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!