An application I am developing locally logs it's output to files formatted with the current timestamp such as app-%Y%m%d.log.
To make it simple to be able to tail the current's day log in a terminal window, I have a symlink named current.log which points to today's log.
At the start of work each day, I need to kill the tail process, point the symlink at today's file, and then re-run the command to tail -f current.log.
Is it possible to change the target of the symlink without having to restart tail - by changing the target of the file handle without tail being any wiser?
To automate this "start of new work day" task it would be easy to setup a cron'ed script to point the symlink at today's file, but it seems that the existing tail process would have no idea that the target has changed.
xconsolefrom the fifo.