有时,我们需要向远程用户发送消息。我们可以使用Notify在本地桌面上显示消息,但是我们无法向远程用户的桌面发送消息。
我们尝试了以下几点:
ssh user@remote
notify-send message->向本地显示发送消息,但不向远程发送消息。
ssh admin@remote
sudo -u user "notify-send message"
sudo: notify-send user: command not found->有一个命令找不到错误。
ssh -X user@remote "DISPLAY=:0 notify-send message"->再次将消息发送到本地框。
有没有向远程桌面发送消息的方法?
发布于 2012-05-06 12:34:42
你试过吗
ssh user@host 'DISPLAY=:0 notify-send "TEST MESSAGE."'
从/display.php?t=1240828获取的答案(没有吉蒙特建议的-X选项)
https://askubuntu.com/questions/132592
复制相似问题