I work for a small software company. We have a product that by default writes to a logs directory inside the installation directory (I know, this may not be the best way, but it's fixed as of now):
I have a user that wants each of his users (on Linux) when running our program, to have logs written to their user directory per session, like
/home/<user>/<program>/logs. Is there a good way to set this up, relying on my program always writing to
/opt/<program>/logs by default?
I'm no Linux expert but I'm thinking this could be done.
Would this be better asked on the Linux SE board?
Any help is appreciated!
NOTE - These logs are created for the program when it runs, no matter who is logged in to use it. They all go to the same directory:
/opt/<program>/logs. If I create a symlink, then all that does it duplicate the logs into another directory. What I need is each user's logs for their session into their respective