[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Anybody know how to tell for how long has ppp-if been up?



On Sun, 22 Mar 1998, [iso-8859-1] Marcelo E. Magallón wrote:

> On Mon, 23 Mar 1998, Michael Beattie wrote:
> 
> > Cant help jumping in, is there an easy way to add/subtract times from the
> > output of "date"???
> > Or do you mean that the time-stamp file would be null length and use its
> > creation time? even then, how can you work out the time since creation?
> 
> I'm thinking C... use time_t, and add and substract that. strftime is your
> friend here. From the shell, use date with some funky formating (something
> like "date +%Y%m%d%H%M.%S"). You man add and substract that, and convert
> it to another format.
> 
> And yes, for what I asked, it would be a null file, and use creation date
> for reference.

I wrote a perl script that calculates ppp usage and breaks it down by user
and also classifies it by prime/non-prime time usage.  If you like, I can
mail it to you.

Best regards,
				Nick

--------------------------------------------------------------------------
Nick Busigin     <Sent from my Debian/GNU Linux Machine>    nick@xwing.org

To obtain my pgp public key, email me with the subject: "get pgp-key"
--------------------------------------------------------------------------


--
To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: