1

I have following code to execute some commands on a virtue screen:

screen -R << EOF
    cd /home/users/devops_tester/apps/Selenium-Webdriver
    export DISPLAY=:99
    npm start
EOF

It gives me an error:

Must be connected to a terminal.

How can I solve it?

I found this related topics but I am not using ssh:

https://serverfault.com/questions/21806/how-can-i-launch-a-screen-session-with-a-command-over-ssh-on-a-remote-server-fro

This is the screen app:

https://packages.ubuntu.com/trusty/screen

zhangjinzhou
  • 2,461
  • 5
  • 21
  • 46

0 Answers0