Hi all,
Is it possible to disable the terminal prompt, like in Windows shell with the “echo off” command?
Thanks.
Max
Hi all,
Is it possible to disable the terminal prompt, like in Windows shell with the “echo off” command?
Thanks.
Max
Are you referring to the banner showing Mikrotik logo or something else ?
For first, possibly something can be done using branding package but I never tried it myself.
No, senza supercazzola.
... come fosse antani ...
JFYI, since you have definitely mastered the Mikrotik scripting, you could be interested in Monicelli:
How do you mean?
Like that it should echo back when you type on the keyboard?
You can enable api-ssl instead of using ssh for the scripting.
quintana ![]()
I write an example:
MMM MMM KKK TTTTTTTTTTT KKK
MMMM MMMM KKK TTTTTTTTTTT KKK
MMM MMMM MMM III KKK KKK RRRRRR OOOOOO TTT III KKK KKK
MMM MM MMM III KKKKK RRR RRR OOO OOO TTT III KKKKK
MMM MMM III KKK KKK RRRRRR OOO OOO TTT III KKK KKK
MMM MMM III KKK KKK RRR RRR OOOOOO TTT III KKK KKK
MikroTik RouterOS 6.49.15 (c) 1999-2024 http://www.mikrotik.com/
[?] Gives the list of available commands
command [?] Gives help on the command and list of arguments
[Tab] Completes the command/word. If the input is ambiguous,
a second [Tab] gives possible options
/ Move up to base level
.. Move up one level
/command Use command at the base level
[admin@RB] > <instruction to disable the prompt>
system routerboard print
routerboard: yes
board-name: SXTsq 5
model: RouterBOARD SXTsq 5HPnD
serial-number: BCE60BF941F9
firmware-type: ar9344L
factory-firmware: 6.44
current-firmware: 6.49.15
upgrade-firmware: 6.49.15
<instruction to enable the prompt>
[admin@RB] >
You want to write and execute on terminal system routerboard print command without seeing written characters?
That’s the purpose off “echo off” or @ per single command for batch scripts executed in windows cmd (or old DOS) shell, also ROS scripts doesn’t print executed commands when running them with /system/script/run.
It might be best to understand the WHY here… I feel like you’re going down a wrong track in scripting if you’re needing an “@echo off”.
But another approach be to just add an “as-value” to end of any command you don’t want output from - normally that’s used to store result into variable but would suppress output at CLI too.
prompt $p$g
But another approach be to just add an “as-value” to end of any command you don’t want output from - normally that’s used to store result into variable but would suppress output at CLI too.
That’s not @echo off it’s more like >NUL in batch scripts ![]()
Ah .. the good old saying
“In /dev/null nobody hears you scream”
(In space /dev/null no one can hear you scream.)
That film have my same age…
Devi spiegare a che ti serve, non cosa vuoi ottenere.
Magari tu pensi sia necessario “ECHO OFF”, ma in realtà per fare (ciò che non hai spiegato) si può fare // va fatto // in un altro modo.
It this for blind person with braille keyboard who doesn’t want to hear written command from text to speech screen accessibility? Hard to figure this requirement out…
Thanks everyone for the suggestions.
My question was simply to get clean output without printing the prompt, just like the “@echo off” statement in Windows cmd.
Thanks everyone for the suggestions.
My question was simply to get clean output without printing the prompt, just like the “@echo off” statement in Windows cmd.
The @echo off command in a batch does not suppress prompt, it suppresses echoing the following commands (including the prompt), so it is still not clear what you are asking for.
Exmple batch pippoecho.cmd:
@echo off
set pippo=topolino
set pippo
echo on
set pippo=pluto
set pippo
The output of the above is:
C:\batches>pippoecho.cmd
pippo=topolinoC:\batches>set pippo=pluto
C:\batches>set pippo
pippo=pluto
Maybe you could post an example of something that you are doing, the actual current output of that and an edited version of that output in the way you would like it to be.
My question was simply to get clean output without printing the prompt, just like the “@echo off” statement in Windows cmd.
To get from Terminal prompt input withut prompt prefix text (blank line without "[admin@RB] > " prefix from your example) - not possible in ROS afaik. Cannot see actual use of such feature in any shell…