我有一个基于 debian 的系统(实际上是 Voyage Linux 0.9.1,它基于 debian wheezy)并且当我这样做时/etc/init.d/ntp status
它返回(例如)
$ /etc/init.d/ntp status
[ ok ] NTP server is running
Run Code Online (Sandbox Code Playgroud)
但是,在 screen 会话(版本 4.01.00devel 2-May-06)[ ok ]
中没有显示。
$ screen
$ /etc/init.d/ntp status
NTP server is running
Run Code Online (Sandbox Code Playgroud)
为什么会这样?以及如何在 Screen 会话中显示它?
BTW:在另一台Debian服务器上(这也将返回xterm-256color
当我这样做echo $TERM
),我注意到,/etc/init.d/ntp status
它永远不会显示的[ ok ]
,不管我是否在屏幕会话或没有,所以它可能不是一个真正的screen
问题。