email on 2nd monday and 3rd monday code
There is another thread very simular to this and I don't want to hi-jack his thread, With the moderators permission I will start a new one.
To send an email to a membership list on the 2nd and 3rd Tuesday of each month. Code:
#!/bin/bash Code:
thisTues=$(date | awk -F" " '{print$3}') |
Why on earth would you hardcode the dates?
The problem at hand is "how to find out if today is the second or third Tuesday of the month?". First, modify the date output to provide the todays date in more useful form: Code:
#!/bin/bash |
I'll get back later in the week. Seems my FB account has been hacked and I need to secure it again.
In the mean time thanks for the input. Dave/ |
Quote:
In this case I needed to send a message on the Friday before the last Tuesday of each month. The code for that worked very well. So I started there. It will be a couple of weeks before I have to use this. Crontab is set to wake up at 18:00 hours every Tuesday. Thank you very much for the help. Dave |
All times are GMT -5. The time now is 01:50 PM. |