I am trying to create a program called tasklog that integrates with one of my online accounts, to keep track of what tasks I have been working on.
On login, I'd like it to display (up to) the five most recent entries, then ask me what I plan to work on during the new session. I then will type an answer, which will be stored in the log.
Example:
When I log in, I would like to be presented with the following:
--- tasklog ---
Hi,(name here).
The most recent task log entries are: (Up to five log entries printed here, in descending order of date.)
*** What do you plan to work on during this session? ***
At this point, I would like to enter a one-line description of what I will be working on, e.g.
Trying to get this task done, already!
After typing in my entry, it should be logged to the log file with date included, as in the examples below.
Then my script will just say:
Thanks!
, and I will be dropped at the command line.
Couple of specifics:
- Write the script in file ~/bin/tasklog
- Modify startup scripts so that tasklog will run immediately before I am presented with a command line.
- The script needs to store log entries in file ~/.tasklog
If anyone could help me to make such a script that allows for this type of logging, I would be most grateful. Thanks to any and all who read this.