Community discussions

MikroTik App
 
Wyoming
Member Candidate
Member Candidate
Topic Author
Posts: 124
Joined: Wed Jun 09, 2004 11:43 pm
Location: Wyoming

run script from terminal

Fri May 27, 2005 12:28 am

I need a way to run a command from the terminal without having to do the print command first. Is there a way to run them by name instead of by number? Such as system script run name="script" instead of system script run 0. I need this as I am making a perl script that will run these scripts remotely and the scripts will not be the same number on all the different mikrotiks.

Thanks
 
Wyoming
Member Candidate
Member Candidate
Topic Author
Posts: 124
Joined: Wed Jun 09, 2004 11:43 pm
Location: Wyoming

Fri May 27, 2005 1:04 am

I figured it out.

system script run [system script find name="name of script"]

Thanks
 
me1100
just joined
Posts: 15
Joined: Wed May 28, 2014 1:56 am

Re: run script from terminal

Thu Feb 11, 2016 1:23 am

In latest RouterOS (I am running 6.33.5) you can simply do this:
/system script run myScriptName

Who is online

Users browsing this forum: No registered users and 20 guests