Community discussions

MikroTik App
 
Michael12345
Member Candidate
Member Candidate
Topic Author
Posts: 139
Joined: Wed Oct 28, 2009 8:44 am

How to execute more than one scripts in Netwatch?

Wed Dec 23, 2009 6:35 am

Shown in the following picture, I want to execute two scripts after router can't ping http://www.baidu.com,I have tried several signs like comma, colon, both can't work. thanks
You do not have the required permissions to view the files attached to this post.
 
fewi
Forum Guru
Forum Guru
Posts: 7717
Joined: Tue Aug 11, 2009 3:19 am

Re: How to execute more than one scripts in Netwatch?

Wed Dec 23, 2009 6:55 am

You can only specify one script.

To work around that issue, make a script that calls the other two scripts:
/system script run [/system script find name=firstScript]
/system script run [/system script find name=secondScript]
And call it from netwatch.
 
Michael12345
Member Candidate
Member Candidate
Topic Author
Posts: 139
Joined: Wed Oct 28, 2009 8:44 am

Re: How to execute more than one scripts in Netwatch?

Wed Dec 23, 2009 8:47 am

You can only specify one script.

To work around that issue, make a script that calls the other two scripts:
/system script run [/system script find name=firstScript]
/system script run [/system script find name=secondScript]
And call it from netwatch.
I suggest should amend it, because nesting easily make confusion and redundant.

Who is online

Users browsing this forum: anav, Bing [Bot] and 113 guests