Hi, I'm packaging wmppp.app 1.2 (a PPP monitoring tool that fits on a 64x64 window) and it requieres an external program to determine the connection speed. The sample program does this:
tac /var/log/messages | grep CONNECT | head -1 since /var/log/messages is not world readable, this program has to be suid root, (yikes!) but on Debian, that's not a problem because it's the same as grep CONNECT /var/log/ppp.log | tail -1 and /var/log/ppp.log is world readable... But the problem is I get: [14 jacinta:~] grep -A 6 CONNECT /var/log/ppp.log | tail May 1 16:54:37 jacinta chat[669]: expect (CONNECT) May 1 16:54:37 jacinta chat[669]: ^M May 1 16:55:07 jacinta chat[669]: ATDT207-5661^M^M May 1 16:55:07 jacinta chat[669]: CONNECT May 1 16:55:07 jacinta chat[669]: -- got it May 1 16:55:07 jacinta chat[669]: send (^M) May 1 16:55:07 jacinta chat[669]: expect (name:) May 1 16:55:07 jacinta chat[669]: 14400/ARQ/V32/LAPM/V42BIS^M May 1 16:55:07 jacinta chat[669]: ^M May 1 16:55:07 jacinta chat[669]: ^M (yes, I've got an 14.4 modem... I've never bothered to buy a new one) As you can see chat breaks the CONNECT line. Is there a way to tell the connection speed? Once on IRC I told Manoj to use $PPP_SPEED on the ip-up/ip-down scripts, but he pointed out that that didn't report the connection speed but the maximum speed on the line. Is there a way out of this, or is this a case by case problem? Thanks, Marcelo -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]