Community discussions

MikroTik App
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

delay

Sat Oct 16, 2010 7:56 pm

i want up-script delay 10 second before take action (desable dsl)
add comment="" disabled=no down-script="/interface ethernet enable dsl" host=192.168.10.10 interval=1m timeout=1s \
up-script="/interface ethernet disable dsl
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: delay

Sat Oct 16, 2010 9:03 pm

Add ":delay 10;" before the rest of the script.
http://wiki.mikrotik.com/wiki/Manual:Sc ... l_commands
 
kazanova
Member
Member
Topic Author
Posts: 406
Joined: Tue Sep 06, 2005 11:52 am

Re: delay

Mon Oct 18, 2010 12:36 pm

ithx for help but not get who i should it
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: delay

Mon Oct 18, 2010 1:40 pm

you write like this:
<command>; <command>; <command>;
where <command> is what you like it to be, for example:
/ip addr print; :delay 10; /ip route print;

Who is online

Users browsing this forum: No registered users and 23 guests