Git Product home page Git Product logo

speedtest's Introduction

speed-test.sh

Internet speed-test from the terminal with logging enabled by default, speedtest.sh enables you to log your ping, upload and downloads stats over time.

┌──(user㉿user)-[~]
└─$ bash speedtest.sh
----------------------------------------------------------------------
Starting speedtest.sh at 15:04:26 on Thursday 2021-09-23
 ISP           : MTN NIGERIA Communication limited
 Location      : Lagos / NG
 Region        : Lagos
 IP Address    : 127.0.0.1
 Timezone      : Africa/Lagos
 
Ping: 65.652 ms
Download: 4.13 Mbit/s
Upload: 0.14 Mbit/s
----------------------------------------------------------------------

speedtest.sh logs the results to speedtest-log

┌──(user㉿user)-[~]
└─$ cat speedtest-log
----------------------------------------------------------------------
Starting speedtest.sh at 15:04:26 on Thursday 2021-09-23
 ISP           : MTN NIGERIA Communication limited
 Location      : Lagos / NG
 Region        : Lagos
 IP Address    : 197.210.78.124
 Timezone      : Africa/Lagos
Ping: 65.652 ms
Download: 4.13 Mbit/s
Upload: 0.14 Mbit/s
----------------------------------------------------------------------

----------------------------------------------------------------------
Starting speedtest.sh at 19:13:47 on Friday 2021-09-23
 ISP           : MTN NIGERIA Communication limited
 Location      : Lagos / NG                                                                                                                                
 Region        : Lagos                                                                                                                                     
 IP Address    : 127.0.0.1                                                                                                                            
 Timezone      : Africa/Lagos                                                                                                                              
Ping: 56.779 ms                                                                                                                                            
Download: 47.13 Mbit/s
Upload: 3.82 Mbit/s
----------------------------------------------------------------------

Add speedtest.sh to Cron Job

Create crontab file with:

crontab -e

then select which editor you're comfortable with

┌──(user㉿user)-[~]
└─$ crontab -e 
no crontab for user - using an empty one

Select an editor.  To change later, run 'select-editor'.
  1. /bin/nano        <---- easiest
  2. /usr/bin/vim.basic
  3. /usr/bin/vim.tiny
  4. /usr/bin/code

Choose 1-4 [1]: 1

add to the crontab file and save

0 6 * * * ~/speed-test/speedtest.sh

this would run speedtest.sh every day at 6am

please refer to https://www.cyberciti.biz/faq/how-do-i-add-jobs-to-cron-under-linux-or-unix-oses/ to learn more about cron jobs

Great

speedtest's People

Contributors

umegbewe avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

dejin1125

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.