Hi Zoran, Thanks for detailed answer and it was really helpful, For others i tried following options
- source $HOME/.bash_profile - 0 5 * * * . $HOME/. bash_profile ; /path/to/command/to/run - set following in cron SHELL=/bin/bash But nothing works for me in centos, it look like hostname variable is not available , So then i used InetAddress.getLocalHost().getHostName() <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> Virenfrei. www.avast.com <https://www.avast.com/sig-email?utm_medium=email&utm_source=link&utm_campaign=sig-email&utm_content=webmail> <#DAB4FAD8-2DD7-40BB-A1B8-4E2AA1F9FDF2>
