According to Steve Youngs: While burning my CPU.
>
> Hi People,
>
> to turn the timer off, with the line...
> echo -n "+"$TIME_ELAPSED >> /etc/ppp/logs/prog-tot
> This file starts life with "0" in it.
>
> The problem is with "-n" in the echo line, bc doesn't like it at
> all (gives a parse error because there is no end of line character). So
> if I initialized prog-tot with echo "0" > prog-tot (no -n) and then
> _inserted_ $TIME_ELAPSED"+" before the "0" instead of _appending_
> "+"$TIME_ELAPSED after it everything would be honky-dory. But how???
Would not;
echo -e "+\n"$TIME_ELAPSED >> /etc/ppp/logs/prog-tot
help. ??
Or if i am not seeing the point you could try.
echo "+" ; $TIME_ELAPSED >> /etc/ppp/logs/prog-tot
echo -e "+\n" ; $TIME_ELAPSED >> /etc/ppp/logs/prog-tot
There are man more combinations to use as well.
>
> Regards, Steve Youngs <[EMAIL PROTECTED]> ICQ: 34307457
> ----------------------------------------------------------
> | __ |
> |Isn't it good to know that / / __ ___ __ ____ __|
> |There _IS_ an alternative! / /__ / // _ \/ // /\ \/ /|
> | /____//_//_//_/\_,_/ /_/\_\|
> ----------------------------------------------------------
> Data to Picard: No I do NOT run Windows!
>
--
Regards Richard.
[EMAIL PROTECTED]