I have a problem with the 'screen' command: i run a script at startup with the following line
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:
[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.