LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 05-12-2004, 09:51 AM   #1
komadich
LQ Newbie
 
Registered: May 2004
Posts: 5

Rep: Reputation: 0
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.
 
Old 05-12-2004, 09:52 AM   #2
komadich
LQ Newbie
 
Registered: May 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Is the problem in the way i run the script or when Im restoring it?
 
Old 12-10-2004, 03:39 AM   #3
njh
LQ Newbie
 
Registered: Dec 2004
Location: netherlands
Distribution: mandrake 10
Posts: 3

Rep: Reputation: 0
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...
 
Old 12-13-2004, 03:16 AM   #4
njh
LQ Newbie
 
Registered: Dec 2004
Location: netherlands
Distribution: mandrake 10
Posts: 3

Rep: Reputation: 0
btw i just reattach through this command:

screen -R ventrilo


help plz!

Last edited by njh; 12-13-2004 at 04:49 AM.
 
Old 12-15-2004, 08:31 AM   #5
njh
LQ Newbie
 
Registered: Dec 2004
Location: netherlands
Distribution: mandrake 10
Posts: 3

Rep: Reputation: 0
anyone?
 
Old 03-18-2005, 06:16 PM   #6
macie
Member
 
Registered: Oct 2003
Location: /dev/null
Posts: 33

Rep: Reputation: 15
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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
cardmgr[953]: no sockets found! vasudevadas Linux - Hardware 4 11-02-2004 01:42 PM
no sockets found - pcmcia epoo Linux - Laptop and Netbook 2 03-01-2004 12:11 PM
dump restore: not found on tape eddi.b Linux - Newbie 1 02-05-2004 09:36 AM
cardmgr[52]: no sockets found! _mu_ Linux - Laptop and Netbook 0 01-18-2004 11:12 AM
add screen / screen init not found for device 0 jamaso Slackware 5 12-29-2002 06:46 PM


All times are GMT -5. The time now is 06:42 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration