So I'm trying to set up a systemd service in order to launch a set of files on a daily basis (different types of journals) from directories based off the date. For example a todo list for today would be located in:
Now the easiest thing to do is to put it in a seperate directory, say today, and then have a bash script move it to the appropriate spot after the last modified time is no longer when it was created, or when the size of the file is larger than the template file. But while that would be easier, I was wondering if it would be possible to write a script to return the directory of the file to be piped through the executed command in the service. Something along the lines of:
ExecStart=/usr/bin/atom | /Path/To/Script/Todays_Dir Todo.md
which would take the file as an argument and return the directory/file path based off the date (the same way the directory and files are being created).
Is this possible, or should I just stick to the already proposed solution?