log-times-of-each-step/README.md

32 lines
1.4 KiB
Markdown
Raw Normal View History

2023-12-12 22:36:03 +02:00
# log-times-of-each-step
2024-02-05 19:30:25 +02:00
This is a blank script for if you want to log the times of each step of your Bash script.
Basically, it uses traps to write out runtime in seconds, the last command executed, and if applicable, the exit code. This all gets written to a file called time.log
It is useful if you want to gauge the time each command in your script takes to run.
# Donations
Please consider making me small donation. Even though my scripts are open source and free to use, I still need to eat. And the occasional bottle of wine also goes down well.
- $5 buys me a cup of coffee
- $10 buys me a nice burger
- $20 buys me a bottle of wine
- Anything above that will be awesome as well.
You can send me a donation via Paypal https://www.paypal.com/paypalme/thisiszeev
Drop me a message on Reddit if you do make a donation. u/thisiszeev
Support is only offered freely to those who donate $20 or more.
Your donation contributes to further development.
If you need a custom script, contact me on Reddit for pricing.
# Get notified when there are updates to this repo...
https://nca.zaks.web.za/index.php/apps/forms/s/8fDpCRzkKRMaBRakNtfyigcQ
Your email address will not be used for any other purpose than to be notifed, not more than once a week, of updates to this or any of the other repos I have on this server. You can also ask me to remove you from the list at anytime, and I will comply.