Hi. I'm keeping a photojournal of my computer and created a shell script that runs every time I log in which takes a screenshot every 5 minutes. I'm on a Mac.
Right now, the script writes over its own screenshots when I log in. For example, I'll end up with "Capture1", "Capture2", etc. However when I log back in, it starts over at "Capture1" and overwrites as it goes.
I have added a line that says:
mkdir folder/$(date +%Y%m%d.%H%M%S)
which creates a timestamped folder every time I log in.
How can I modify my script so that the pictures will be placed into that new different folder every time I log in?
Is there a better way to do this?
Thanks
Right now, the script writes over its own screenshots when I log in. For example, I'll end up with "Capture1", "Capture2", etc. However when I log back in, it starts over at "Capture1" and overwrites as it goes.
I have added a line that says:
mkdir folder/$(date +%Y%m%d.%H%M%S)
which creates a timestamped folder every time I log in.
How can I modify my script so that the pictures will be placed into that new different folder every time I log in?
Is there a better way to do this?
Thanks