2/24/2024 0 Comments Exit putty ssh sessionYou can add a "-t NAME" to give shells or programs a title. Which will detach and logout remotely, if nesscessary, then reattach, or if that session doesn't exist, it will create it and notify the user. You can also do a less nice, screen -D -R Which will nicely detach and re-attach your session. Once you've identified a screen session to reconnect too, try screen -dr SCREENID To see all your sessions, type screen -list Screen is really powerful, and allows you to do exactly what you asked. ^a x to lock your screen session, in case you need to leave your computer and don't want people to mess with it.^a Esc to scroll in your screen buffer.^a " to list the current windows in your session.^a ^a to switch between the two last used windows.^a c to create a new window in your screen session.In addition, I can recommend taking a look at ^a ? for a list of the different commands you can use while inside of a screen. Īlso, when you start using screen, whenever you plan to leave, press ^a d (= ctrl-a followed by a d) to detach the screen you're currently running. If the screen is already attached somewhere, use screen -dr. For instance, I have one I use normally and one I use for my persistent processes. This is quite useful if you want to have several screen sessions going at the same time. To clarify the Putty connection is to the Raspberry Pi running Zigbee2MQTT. What are you seeing when you run the command you pasted? This means that it’s running in the background (detached) and you can safely close your tty session without disrupting the mqtt container. It should only output the container id after you run it with -d: sudo docker run -name=mqtt -itd -restart=always -net=host -v /srv/docker/mqtt/config:/mosquitto/config -v /srv/docker/mqtt/data:/mosquitto/data -v /srv/docker/mqtt/log:/mosquitto/log -v /srv/docker/mqtt/config/nf:/mosquitto/config/nf:rw eclipse-mosquitto:opensslĦ9d8568ebfe6b8fc0292b2b93801d3c66e99ba269e127a700a243a301697c0ae I am not sure, when I run exactly what you have above, it runs the container detached for me. v /volume1/docker/mqtt/config/nf:/mosquitto/config/nf v /volume1/docker/mqtt/log:/mosquitto/log v /volume1/docker/mqtt/config:/mosquitto/config -v /volume1/docker/mqtt/data:/mosquitto/data Arvidst4: sudo docker run -name=mqtt -itd -restart=always -net=host
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |