There's something really satisfying about running a script that you know would save time. Even if the overall time is probably a negative.
I wrote a script that would log me into our AWS EKS stuff. I typically would have to copy these 7 lines and look up which cluster version I'd need. One of my lines just pulls all the clusters and I use fzf to select the cluster I wanted. Takes away all the pain and makes me feel smug. Love it.
It's a two minute task, but it happens randomly between the hours of "romantic dinner with my wife" and "ten minutes after the baby finally went down for a nap".
Test 1:
Locking process.
Unexpected error encountered. Exiting immediately.
Test 2:
Waiting for process unlock to proceed.
Test 3:
Waiting for process unlock to proceed.
Test ...
Doesn't even have to be the case. A 2min task done every (work)day, takes up a bit over 7 hours/year. After 2½ years it will be a benefit to have automated it!
Only if the requirements stay the same for 2.5 years. Otherwise there's probably another week of time trying to update the initial work, then just throwing it away and making a new solution that's theoretically easier to update.
A long time ago when I handed off my duties when leaving, my replacement (in house) was absolutely astonished at how little I was doing. I had taken the global fleet of bar/retail/hotel/restaurant/office printers (minus properties in China) from around 30% of total being OOS to less than 3% in 18 months. Everything from giant plotters to the fry cooks' line printers.
What my replacement didn't see was the 3 months I spent not sleeping. Worth every second.
Automate the living fuck out of everything (that's ok to automate) & read reports / logs.
[edit] A love letter to Bash, Korn (pdksh) & Cron [dbl edit] And Tail. [tpl edit] and I guess all of /var
Ctrl+f code has to be some of the most efficient automation ever written. Time spent was probably about day and the time saved in work hours is probably in the trillions at this point.
Yes, but since it runs automatically every day and emails my team the results, I don't have to remember to do it on my own. I don't even have to be working that day. Taking "my ADHD memory" out of the system is always a win.
Accessibility in general seems to be a huge benefit to automation a lot of people here including op are overlooking, which is a great shame but unfortunately not surprising..
One more advantage is that you now have the full process well documented (via code) and if you realize some change is needed you can repeat the task quickly.
I did that years ago to make backup reports and job monitoring on old servers with uncommon operating systems at work.
Before my script, coworkers and I had to connect to more than a dozen servers and fill reports about the status of backups and the server. It took about 20 minutes if all went well. Now we just click a button and the report is filled automatically.
It may just be 20 minutes a day, or maybe less if you were quick, but we're still using it and it's been nearly a decade. It saved a lot of minutes in the end. More time for naps.
Sometimes I've gone the other way. My manager complained once that I didn't automate a task to get business metrics, and I responded to say that it currently takes me 1 minute to pull the metrics and paste them into a spreadsheet and print a PDF. Automating this would take at least several days, for a slide that changes constantly, and where the data often requires a deep dive into why the data is how it is. What's the point in automating something that I already need to manually look at?
They raised it with our PM, and their response was "fair, I wish I hadn't bothered to automate things last year".
If the cost would give a higher benefit, sure, automate it so that it spits out a spreadsheet every week and do the manual stuff separately - but automating something "because you can" is junior level shit. My time is valuable, let me work on stuff that actually matters.