Since I have trouble to get a shell script executed from cron, I tried to test cron with a very simple command, which works fine on the command line:
# printf "HELLO\n" | tee cron.out
HELLO
# cat cron.out
HELLO
Being user root in it's home dir, the file cron.out is created AND I get the output to the terminal as expected.
After removing cron.out and using this cron entry:
CRON_TZ=America/Los_Angeles
SHELL='/bin/bash'
48 13 * * * root printf "HELLO\n" | tee cron.out
I get the following:
I receive no mail in root's inbox, but, much more surprising, cron.out is created, but it is empty:
# ls -la cron.out
-rw-r--r-- 1 root root 0 Sep 12 13:48 cron.out
So, the job is not generating output at all.
Any ideas?