Keep terminal session alive after disconnecting winbox

Like the title says. On linux I normally either use “screen” or I launch a command in background, with &. How do I do it with mikrotik? Like to keep open an ssh connection.

Whatever command you want to be persistent, instead of typing it into the terminal, type it into a script and then run the script. It will keep running even after you disconnect winbox.


Sent from my iPhone using Tapatalk

I will try, thanks!

edit: it does not seem possible to handle interactive sessions properly via scripts. http://forum.mikrotik.com/t/remote-ssh-via-script/64915/1

I’ll have to use fastkeys and other systems to do that.

Yeah, OK… if the command you are running has even the potential of ever reading stuff from user-input, it won’t be allowed.

See this posting for my own bugaboo related to this topic.