LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-22-2016, 11:20 PM   #1
lwv962
Member
 
Registered: Feb 2011
Location: Wales
Distribution: MX Linux 18
Posts: 36

Rep: Reputation: 0
Logging connection speed


hi,

I am using speedtest-cli it works very well.I would like to be able to log just
the download and upload results. Has anyone any suggestions,I would be most grateful to know.

Many thanks
lwv962.
 
Old 10-23-2016, 04:09 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
speedtest_cli.py is just a Python script. Executing it doesn't require submitting any args and it doesn't provide a curses UI or something like that to get in the way of logging. So basically you could set up a cron job like this to log output to /var/log/messages or equivalent:
Code:
@daily /usr/bin/python /path/to/speedtest_cli.py 2>&1 | /usr/bin/logger -t "speedtest"
or if you want to log to a file of choice use 'logger -f /path/to filename' or replace '2>&1 | /usr/bin/logger -t "speedtest" ' with '2>&1>>/path/to filename' (do check log rotation).
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Internet speed logging app fkasmani Linux - Software 2 04-23-2012 02:57 AM
Logging connection bytes for iptables? asleeis Linux - Security 6 03-30-2011 10:34 AM
apache logging download speed ping_wing Linux - Software 0 05-05-2004 04:54 AM
Is there a tool to monitor Internet connection speed and also network speed? xleft4dexy Linux - Networking 4 10-14-2003 10:29 PM
Connection Speed DoctorSteele Linux - Hardware 3 10-12-2003 08:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:35 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration