# Script working only in terminal, but not on system\>scripts

**URL:** <https://forum.mikrotik.com/t/script-working-only-in-terminal-but-not-on-system-scripts/164121>\
**Category:** Scripting\
**Created:** [February 3, 2023, 6:55am UTC](https://forum.mikrotik.com/t/script-working-only-in-terminal-but-not-on-system-scripts/164121 "2023-02-03T06:55:32Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Jotne](https://forum.mikrotik.com/user_avatar/forum.mikrotik.com/jotne/32/56097_2.png) [@Jotne](https://forum.mikrotik.com/u/Jotne)\
**Post date:** [February 5, 2023, 8:00pm UTC](https://forum.mikrotik.com/t/script-working-only-in-terminal-but-not-on-system-scripts/164121/2 "2023-02-05T20:00:07Z")

</div>

You should not use number in script. That is just some temporary number.  
In script you must change number with find.

## Example find interface name, find comment or other unique with what to delete. \

Use **Splunk\>** to log/monitor your **MikroTik** Router(s). See link below. ![:mrgreen:](https://data-discourse.cdn.mikrotik.com/original/2X/4/442e459c5ced45cb70e8a05e77e07cea6fee4928.gif "Mr. Green")

**[MikroTik-\>Splunk](http://forum.mikrotik.com/t/tool-using-splunk-to-analyse-mikrotik-logs-4-0-graphing-everything/153043/1)**

---

_[View the full topic](https://forum.mikrotik.com/t/script-working-only-in-terminal-but-not-on-system-scripts/164121)._
