LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   cant restore 'screen': No Sockets found (https://www.linuxquestions.org/questions/linux-newbie-8/cant-restore-screen-no-sockets-found-180652/)

komadich 05-12-2004 08:51 AM

cant restore 'screen': No Sockets found
 
I have a problem with the 'screen' command: i run a script at startup with the following line
Code:

su $eduser -c "screen -dmS $prog $eddir$edbin"
.
Afterwards the program seems to be running when i check it with 'ps -a', but I cant restore the screen. This would be the output:

Code:

[user@localhost user]$ screen -r
Cannot open your terminal '/dev/pts/2' - please check.
[user@localhost user]$ screen -list
No Sockets found in /home/user/tmp.


komadich 05-12-2004 08:52 AM

Is the problem in the way i run the script or when Im restoring it?

njh 12-10-2004 02:39 AM

i got the same problem.


I use the screen command to start a game server and voice over ip server.

so i have made a shell script to start the program

[shell script]
screen -A -d -m -S ventrilo ./ventrilo_srv
[end shell script]


If i enter "sh ventrilo"
then the server starts,

but if i enter "screen -list"
i get the message "no sockets found in ...."

If i start the server twice (so there are 2 processes,) i can reattach the screen

Sometimes i can reattach it, but mostly not


Any help is appreciated...

njh 12-13-2004 02:16 AM

btw i just reattach through this command:

screen -R ventrilo


help plz!

njh 12-15-2004 07:31 AM

anyone?

macie 03-18-2005 05:16 PM

kinda late responce, but whoever might find it helpful....

the reason u get that is because you do not have proper permissions to dev/pts/2 ..which is probably owned by root.

try: su - user
the "-" makes sure the full potential of the local user is used, otherwise certain aspects of the root account are still left over...
and make sure the needed pts has desired permissions... have fun.


All times are GMT -5. The time now is 10:46 PM.