screen connect: No such file or directory

Bash shell is the common linux command language.
Post Reply
mister_v
Posts: 199
Joined: Thu Mar 04, 2010 9:19 pm

screen connect: No such file or directory

Post by mister_v »

Hello,

I get the following error:

Code: Select all

# screen
/tmp/screen/S-root/2##7.pts-0.host: connect: No such file or directory

Anyone known how to solve this.
I can't create a new screen session.
chris
Site Admin
Posts: 205
Joined: Mon Jul 21, 2008 9:52 am

Re: screen connect: No such file or directory

Post by chris »

Check to see if you have the environment variable STY set:

Code: Select all

[] echo $STY
251.pts-0
If the variable is set, then you are telling screen to reattach to an existing session. If that session doesn't exist, then you will see the error you are getting.

To solve this, just clear the environment variable by running:

Code: Select all

export STY=
and try starting screen again.
Post Reply