I wrote a simple master-slave failover setup for my two servers using c, running redhat6 which using udp heartbeats to monitor one another. In my app I'm printing out some information like, heartbeat received, server is healthy and some more stuff. I want it to run in background and appending those printfs to nohup.out. So I issued below,
nohup ./appname &
nohup: ignoring input and appending output to nohup.out
App is running in background, but output is not appended to nohup.out. I thought it was buffered, so I gave sometime and killed it, but nohup.out is still empty,
Any thoughts in this?