hello ,
can I make an interactive script where I waiting for replay and then save it?
You mean interaction with the user? That is not possible directly with ROS script.
so only with API?
not in ssh script?
YES YOU CAN
{
:local input1 do={:return};
:put "Input Name: "
:local name [$input1];
:local input2 do={:return};
:put "Input Surname: ";
:local surname [$input2];
:put "The full name is : $name $surname."
}
Only unique function can be sufficent:
{
:local requestvalue do={:put $1 ; :return}
:local name [$requestvalue "Insert the name"]
:local surname [$requestvalue "Insert the surname"]
:put "The full name is: $name $surname"
}
if you could, what would you want it to do?
Basically, why do you want to?
Probably, my supposition, for autoconfig script, that once executed (on interactive terminal, obviously)
ask for SSID, passwords, RouterOS users names and passwords, IP???, etc.
I already use that when the CPE is installed to end user: the technician launch the script and do not forget nothing, all is requested.
On error something like this appear on terminal, etc.
(for see the example, paste it on terminal)
/terminal style error;:put "Caratteri non validi nell'SSID"
(IT: Caratteri non validi nell’SSID = EN: Invalid characters on SSID)
Just for test a joke:
{
:local requestvalue do={:put $1 ; :return}
:local name [$requestvalue "Insert test as value"]
:if ($name != "test") do={
/terminal style error
:put "you have not written test"
} else={
/terminal style syntax-old
:put "welldone"
}
}
So a replacement for Quick-Set?
Quick-Set?
What is?
At least as a working replacement…