Bash Script Help, Started but need help

Job ID: 31106189

Budget: $10 – $30 USD

Hello,

I have started this script. What it does is sorts through all users who are have logged in to an application. then at the 30 day mark it needs to send me an email. I need to set this up as a cron job to run each day. Here is the part that I have so far.

Issue - I would have to know each user that logs into the system and they each would have to have their own file. Possible solution is to have it going to one file that would be appended each day. and when the count down hits 0 it then sends email.
Related categories: Script Install Linux Shell Script Ubuntu Debian