Link to home
Start Free TrialLog in
Avatar of Aida2
Aida2

asked on

Crontab timing

Hello,
Is it a any way to say last sunday in each month?

Thanks
Avatar of slow1000
slow1000

42 22 * * * if [ `env TZ=$TZ-24 date +%a` == "Sun" ]; then my-script; fi
Avatar of Aida2

ASKER

Thanks a lot .
Can you please tell me what TZ=$TZ-24 do
ASKER CERTIFIED SOLUTION
Avatar of ahoffmann
ahoffmann
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Aida2

ASKER

Thanks it's work