cygwin 中屏幕进程挂起
我试图在 64 位 Windows Ultimate 下运行最新版本的 Cygwin 中的 screen(版本 4.0),但它不起作用。我使用“screen -d -m -S screen1”启动一个新的屏幕会话。当我使用“screen -A -d -r screen1”之类的东西连接到它时,进程会挂起。当我用“screen -list”列出屏幕时,它会将屏幕报告为“可能已死”。
知道如何让屏幕在我的环境中工作吗?
I'm trying to run screen (version 4.0) in the latest version of Cygwin under 64-bit Windows Ultimate, and it doesn't want to work. I launch a new screen session using "screen -d -m -S screen1". When I connect to it using something like "screen -A -d -r screen1" the process hangs. When I list screens with "screen -list" it reports the screen as "possibly Dead".
Any idea how to get screen working in my environment?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我刚刚运行了与您相同的命令,并且遇到了类似的问题。但我一直在64位Windows 7下使用屏幕。
我只是使用
screen
启动屏幕会话,并使用screen -dr
稍后重新附加到同一会话。 (我实际上一直在使用screen -U
和screen -drU
,但我刚刚意识到在我的$ 中使用
,defutf8 on
HOME/.screenrc-U
不是必需的。)我还没有弄清楚为什么你的方法不起作用。
I just ran the same commands you did, and had similar problems. But I use screen under 64-bit Windows 7 all the time.
I just use
screen
to start a screen session, andscreen -dr
to reattach to the same session later. (I've actually been usingscreen -U
andscreen -drU
, but I just realized that withdefutf8 on
in my$HOME/.screenrc
, the-U
isn't necessary.)I haven't figured out why your approach doesn't work.
我目前还尝试在 Windows Server 2008 安装上的 cygwin 安装上进行屏幕工作。
它原则上有效,所以我可以重用会话,但它有很多错误:
1.)只有通过 rdp 会话(在 Windows 桌面上)启动的会话才能访问已安装的网络共享,通过 ssh 启动的会话只能访问“c” 。 (好吧,这并不是真正的屏幕错误,一般来说更多的是 cygwin)
2.)分离不能通过 ssh 工作。 strg+a+d 只是冻结终端,通过按顺序使用这些键: [strg+z, bg, %, strg+c] 我可以返回到我上次访问的屏幕会话。
3.) 这导致了一个有趣的状态,我可以多次附加相同的屏幕会话,并查看所有实例上的输入和输出
I am also currently trying to get screen work on a cygwin installation on a windows server 2008 installation.
it works in principle, so I can reuse sessions, but its quite buggy:
1.) only sessions started through an rdp session (on the windows desktop) are able to access mounted network shares, sessions started through ssh can only access "c". (okey not really a screen bug, more cygwin in general)
2.) detach doesn't work through ssh. strg+a+d just freezes the terminal, by using these keys in that sequence: [strg+z, bg, %, strg+c] I can get back into the screen session I've last visited.
3.) this leads to the funny state that I can have the same screen session attached multiple times, and see the input and output on all instances