How can I get currently attached screen session name?

有些话、适合烂在心里 提交于 2019-12-07 02:05:45

问题


I'm writing a script which needs the name of the currently attached screen session's name if there's any.


回答1:


You might want to check answers here: How do I display the current "session" name or "sockname" of a screen session in the status bar?

In short the $STY environment variable is what you are looking for.



来源:https://stackoverflow.com/questions/16848940/how-can-i-get-currently-attached-screen-session-name

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!