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 03-21-2010, 03:51 AM   #1
RudraB
Member
 
Registered: Mar 2007
Distribution: Fedora
Posts: 263

Rep: Reputation: 23
conky:ppp0 uptime


dear friends,
I have a mobile broadband service that have a limit of 50 hours in day and 90 hours in night time.
Is there any way that I can watch how many hours i have used(i guess a script will do, but i dont know perl/python)in conky.
Is there someone who has done this? plz provide me the script or some other better idea
 
Old 04-06-2010, 08:47 AM   #2
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287
Can you be more specific ? What do you mean by 50 hours in day ? The day is 12 hours long. Is this per week, per month ?
 
Old 04-06-2010, 11:52 PM   #3
RudraB
Member
 
Registered: Mar 2007
Distribution: Fedora
Posts: 263

Original Poster
Rep: Reputation: 23
its per month, but bottom line is can conky calculate?
 
Old 04-07-2010, 04:17 AM   #4
H_TeXMeX_H
LQ Guru
 
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287Reputation: 1287
Conky just uses the output of other programs, so you'll have to write a script. I don't know how you connect to it, but you can write a timer that starts when you connect and stops when you disconnect and accumulates the time.
 
  


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
conky question: passing conky-variable to shell-script zlin50 Linux - Software 2 12-29-2012 06:47 PM
Conky on Suse 10.0 - *** buffer overflow detected *** conky terminated Slidex Linux - Software 1 03-17-2006 11:50 AM
eth1 and ppp0, need to send UDP packets through ppp0 smhs Linux - Networking 2 07-12-2005 08:54 AM
ADSL-STATUS: linked to ppp0 but ppp0 seems to be down. mikkime23 Linux - Networking 1 01-01-2005 11:00 AM
Endless Loop: ppp0 Unregister Netdevice: waiting for ppp0 to be free. oberon-ken-obi Linux - Networking 1 07-20-2004 11:04 PM


All times are GMT -5. The time now is 08:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration