0

I'm trying to run a bash script on my local machine that starts a long-running process in screen in SSH and exit.

Screen and the long-running process runs fine.

But on my host machine, the script hangs which has to be killed manually.

  ssh -tt $SSH_URL <<EOT
  screen -d -r my_session
  # some commands or just do nothing
  screen -d
  EOT

This hags indefinitely.

PS: Terminating SSH session (non screen) is explained here

1 Answer 1

0

I'm trying to run a bash script on my local machine that starts a long-running process in screen in SSH and exit.

Run the script with:

./somescript.sh &

Here's explained why.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.