Unable to see output in redirected file when running process in the background using "&"
rdcentermrzhi opened this issue · comments
Description: When I run a process in the background using the "&" symbol and redirect the output to a specific file, I am unable to see any output in the file. However, if I run the process directly without sending it to the background, I can see the output as expected.
Steps to reproduce:
Run a command in the terminal followed by "&" to send it to the background.
Redirect the output of the command to a specific file using the ">" symbol.
Check the contents of the file.
Expected behavior: The output of the command should be visible in the redirected file, even when running the process in the background.
Actual behavior: No output is visible in the redirected file when the process is run in the background, although running the process directly shows the expected output.
Additional information:
Operating System: AlmaLinux release 8.3
Command used: tgbot-cpp/samples/echobot-curl-client