Help please

Hi I need help please with a script.

I need to make a script that change the username and password for a PPPOE connection on a specific date.. Can someone please assist me ? I am new to scripting and have no idea how to do it.

Thank you

Create script as follows:

:global ddatenew [/system clock get date];
:global ddateold oct/03/2012;
 :if ($ddatenew=$ddateold) do={
/interface pppoe-client print;
/interface pppoe-client remove 0;
/interface pppoe-client add ac-name="" add-default-route=yes allow=pap,chap,mschap1,mschap2 \
    dial-on-demand=no disabled=no interface=ether2 max-mru=1480 max-mtu=1480 \
    mrru=disabled name=ADSL password=password profile=default service-name=\
    Provider use-peer-dns=yes user=user@provider-dsl

}
:log error "script Date-Check: Executed!";

Script reads current date to “ddatenew” variable, compares it with “ddateold” variable, and if they are the same removes ppoe client 0
and creates pppoe-client 0 again
(IMHO that is simpler than editing username and password)
When it is done it logs the event into log

It will probably need some “cosmetics” but it works as it is…

regards

Thank you satman1w !!