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
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
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.
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
>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
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