Re: [SLUG] Change seconds to H:M:S

2000-09-06 Thread Herbert Xu
James Wilkinson <[EMAIL PROTECTED]> wrote: > > HOURS=`expr $CONNECT_TIME \/ 3600` > CONNECT_TIME=`expr $CONNECT_TIME - \( $HOURS \* 3600 \)` > MINUTES=`expr $CONNECT_TIME \/ 60` > CONNECT_TIME=`expr $CONNECT_TIME = \( $MINUTES \* 60 \)` > SECONDS=$CONNECT_TIME > Erk, ugly. You could use the POSI

Re: [SLUG] Change seconds to H:M:S

2000-09-05 Thread Michael
Look on freshmeat for ppptime util/source code :O) On Wed, 6 Sep 2000, George Vieira wrote: > Hi all, > > I have PPPD running and sending out via $CONNECT_TIME variable the time the > link was up for. The problem is that it's in seconds only and I get rsults > like "37646752 seconds". Is there

Re: [SLUG] Change seconds to H:M:S

2000-09-05 Thread Dave Fitch
George Vieira <[EMAIL PROTECTED]> > I have PPPD running and sending out via $CONNECT_TIME variable the time the > link was up for. The problem is that it's in seconds only and I get rsults > like "37646752 seconds". Is there a way to convert this into H:M:S? > > I am doing this in a bash script.

Re: [SLUG] Change seconds to H:M:S

2000-09-05 Thread James Wilkinson
On Wed, 06 Sep 2000, George Vieira generated: >Hi all, > >I have PPPD running and sending out via $CONNECT_TIME variable the time the >link was up for. The problem is that it's in seconds only and I get rsults >like "37646752 seconds". Is there a way to convert this into H:M:S? > >I am doing this

Re: [SLUG] Change seconds to H:M:S

2000-09-05 Thread Ken Yap
>Hi all, > >I have PPPD running and sending out via $CONNECT_TIME variable the time the >link was up for. The problem is that it's in seconds only and I get rsults >like "37646752 seconds". Is there a way to convert this into H:M:S? > >I am doing this in a bash script.. Write a short script to do

[SLUG] Change seconds to H:M:S

2000-09-05 Thread George Vieira
Hi all, I have PPPD running and sending out via $CONNECT_TIME variable the time the link was up for. The problem is that it's in seconds only and I get rsults like "37646752 seconds". Is there a way to convert this into H:M:S? I am doing this in a bash script.. thanks, George Vieira Network Ad