标签: bash ubuntu xvfb
我有以下代码在美德屏幕上执行一些命令:
screen -R << EOF cd /home/users/devops_tester/apps/Selenium-Webdriver export DISPLAY=:99 npm start EOF
它给了我一个错误:
Must be connected to a terminal.
我该如何解决?
我发现了这个相关主题,但我没有使用ssh:
https://serverfault.com/questions/21806/how-can-i-launch-a-screen-session-with-a-command-over-ssh-on-a-remote-server-fro
这是屏幕应用:
https://packages.ubuntu.com/trusty/screen