1. I have created a client socket to receive a data from the server.
2. The data received from the server will be shown in the terminal.
3. i want to run this application as a background and i want to redirect the output to a file. and also i want to run this application even when i log out so i did as given below
nohup myprogram > foo.out 2> foo.err < /dev/null &
4. when i use
Everything is fine. I can view the output
i cannot able to view the last data i received.
5. If i run that on terminal, everything is fine. i can able to see the data, even the last one i received.
If i run the same using nohup, i could not able to view the last received data.
Can any one help me out to solve this problem
Thanks in advance