It appears that I didn't understand/report the problem 2 correctly.
The correct description of problem 2 is:
I created a file named tdscreenrc.txt, which contains a single line
with the command 'detach'.
Then i execute
screen -S tdm -c /home/kreso/tdscreenrc.txt
and screen immediately detache
Thanks for answers. I still didn't solve the problem, but it gave me
an idea.
Adam Lazur wrote:
> This isn't a screen problem, it's a dynamic linking problem.
>
> I bet the executable can't find the shared library when it starts up.
> Does your shell have an LD_LIBRARY_PATH environment variable
Problem 1.
For a test, I made a very simple C program named fooint.cpp:
#include
main()
{
int i;
scanf("%d",&i);
printf("rez: %d\n",i);
return 0;
}
and compiled it with:
g++ -o fooint.exe fooint.cpp
If I try to start it with:
screen fooint.exe
it
I'm trying to make screen automatically start another program. First
I tried:
screen telnet
and that works fine.
Then I tried to start one program that I made called "fooprog".
fooprog is interactive, it reads from stdin and writes to stdout,
and when run first asks for a password.
However,