Page 1 of 1
Keep terminal session alive after disconnecting winbox
Posted: Sat Aug 12, 2017 10:57 pm
by pier4r
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.
Re: Keep terminal session alive after disconnecting winbox
Posted: Sun Aug 13, 2017 3:14 am
by macsrwe
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
Re: Keep terminal session alive after disconnecting winbox
Posted: Sun Aug 13, 2017 11:02 am
by pier4r
I will try, thanks!
edit: it does not seem possible to handle interactive sessions properly via scripts.
viewtopic.php?t=71262
I'll have to use fastkeys and other systems to do that.
Re: Keep terminal session alive after disconnecting winbox
Posted: Sun Aug 13, 2017 11:14 pm
by macsrwe
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.