I have a simple small app that suports
cout interaction. But there are times (lots of them) when I do not care about that interaction and just want to run my app in background. So I start it with command like
nohup ./myServer >& /dev/null &
but it eats 100% of one of my cores because
endl or something like that to my app, my app thinks that this is dull user and proposes him with list of interaction commands and waits for new commad, nohup sends
endl again and so on recursively.
So one core gets eaten up with this crappy interaction. I want to start nohup so that it would send no data at all to my app - no
endl, etc how to do such thing?
How to make nohup send no data at all to my app after it started it?