Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
0 6 1-7 * 1 foo > foo.log 2>1&
0 6 1 * 1-5 foo > foo.log 2>1&
0 6 2 * 1 foo > foo.log 2>1&
0 6 3 * 1 foo > foo.log 2>1&
manpage said:Note that the specification of days may be made by two fields
(day of the month and day of the week). If both are specified as
a list of elements, both are adhered to. For example, 0 0 1,15 *
1 would run a command on the first and fifteenth of each month,
as well as on every Monday. To specify days by only one field,
the other field should be set to `` * '' (for example, 0 0 * * 1
would run a command only on Mondays).
#!/bin/ksh
export DOM=$(date '+%d')
export DOW=$(date '+%a')
(( ${DOM} > 3 )) && exit
[[ "${DOW}" = Sat || "${DOW}" = Sun ]] && exit
[[ "TueWedThuFri" = +(*${DOW}*) && ${DOM} != 01 ]] && exit
# If it reaches here, it's the first business day of the month.
# Your first business day code starts here...
0 6 1-3 * * first_bus_day.sh > fbd.log 2>&1
cal [red]$(($(date +%m)+1))[/red] [red]$(date +%Y)[/red]| nawk 'FNR > 2 && NF >= 6 {print (NF==6) ? $1 : $2; exit}'
at $(($(date +%m)+1))/$x/$(date +%Y) -f nameOfThisScript
cal $(( ($(date +%m)+1) % 12 )) $(( $(date +%Y) + ($(date +%m)/12) ))