To debug or logging bash scripts may be simple with
echo „Text“ > logfile
I’m sure in most cases it will be managed like that. But how to diff between error debug and maybe warnings and handle it? Logging mechanism is so usefull, why not to use in shell scripts, too?
„Add logging functionality to bash / shell scripts.“ weiterlesen
A few days i had to answer this question.
How to execute a script on 2. last Workday of month only?
With workdays, regular business days was meant.
So, i will explain the way to solve this requirement.
For some statistic jobs it may neccessary to start a script a business day eayrlier than last day of a month.
The first answer is how to get out if today is the last day of month.
- We want to keep it simple
- Find a general rule
„How to execute a script on 2. last Workday of month only?“ weiterlesen