Hello
I’m using V.50rc2 and I want to make a script that do this idea :
if ping to 10.0.0.1 count =5
do {disable modem , delay 30, enable modem }
if ping to 10.0.0.01 count=20
do {disable modem , change user name\pass\network setting , enable modem - and connect }
this is my script:
:if ([/ping 10.10.1.5 count=5]=0) do={/interface ppp-client disable ppp-out1; :delay 5 ; /interface ppp-client enable ppp-out1; :delay 30}
:if ([/ping 10.10.1.5 count=10]=0) do={/interface ppp-client disable ppp-out1; :delay 5 ; /interface ppp-client remove [find name=“ppp-out1”]; :delay 10; /interface ppp-client add name=“ppp-out1” max-mtu=1500 max-mru=1500 mrru=disabled port=usb2 data-channel=5 info-channel=3 apn=“org.network.net.il” pin=“” user=user1" password=“1234” profile=default phone=“*99#” dial-command=“ATDT” modem-init=“” null-modem=no dial-on-demand=no add-default-route=yes use-peer-dns=yes allow=pap disabled=no ;
}
my problem is :
that the script in terminal mode , but when I put him in schedule (start-up + interval 5 Min) it’s stuck after the first if condition/
thank you for your help
dave.