Why script ip-down.local is doing nothing?(Solved)

Parameshwara Bhat pbhat66 at rediffmail.com
Fri Jul 29 05:07:41 UTC 2005


Dear List,

The issue listed below is solved by a helpful suggestion by Mr.James
Wilkinson, off the list. The reason was setting the executable bit for the
script! I thank James for his perceptive suggestion.

I also thank Alexander who gave the script,Paul and others who helped.

Parameshwara Bhat

On Wed, 27 Jul 2005 16:39:41 +0530, Parameshwara Bhat
<pbhat66 at rediffmail.com> wrote:

> Hello List,
>
> I have created a script in ip-down.local as follows on the advice of  
> Mr.Alexander Dalloz on the list,
>
> [pbhat at sidharth ~]$ cat /etc/ppp/ip-down.local
> DATE=$(date +"%Y.%m.%d %H:%M:%S")
> # Format: date  time  onlinetime [s]  bytes send   bytes received
> /bin/echo $DATE $CONNECT_TIME $BYTES_SENT $BYTES_RCVD  
> >>/var/log/ppp-usage
>
> I have also created an empty file in /var/log/ppp-usage.
>
> Now I expected this file to be updated each time connection went down.  
> This doesn't seem to be happening. This file remains empty.
>
> If I issue command
>
> /sbin/echo $CONNECT_TIME
>
> I get nothing. What I am missing here?
>
> Regards,
>
> Parameshwara Bhat



-- 
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/




More information about the fedora-list mailing list