Setup guide
Task Management
system script job
Description
This facility is used to manage the active or scheduled tasks.
Property Description
name (read-only: name) - the name of the script to be referenced when invoking it
source (read-only: text) - the script source code itself
owner (text) - the name of the user who created the script
Example
[admin@Wandy] system script> job print
# SCRIPT OWNER STARTED
0 DelayeD admin dec/27/2003 11:17:33
[admin@Wandy] system script>
You can cancel execution of a script by removing it from the job list
[admin@Wandy] system script> job remove 0
[admin@Wandy] system script> job print
[admin@Wandy] system script>
Script Editor
Command name: /system script edit
Description
RouterOS console has a simple full-screen editor for scripts with support for multiline script
writing.
Keyboard Shortcuts
• Delete - deletes character at cursor position
• Ctrl+h, backspase - deletes character before cursor. Unindents line
• Tab - indents line
• Ctrl+b, LeftArrow - moves cursor left
• Ctrl+f, RightArrow - moves cursor right
• Ctrl+p, UpArrow - moves cursor up
• Ctrl+n, DownArrow - moves cursor down
• Ctrl+a, Home - moves cursor to the beginning of line or script
• Ctrl+e, End - moves cursor to the end of line or script
• Ctrl+y - inserts contents of buffer at cursor position
• Ctrl+k - deletes characters from cursor position to the end of line
• Ctrl+u - undoes last action
• Ctrl+o - exits editor accepting changes