I scheduled a cron task:0 */10 * * * aapa bash /home/aapa/scripts/es_backup.sh &>> /var/log/super/es_backup.logIt is running as logged into syslog:Dec  4 08:17:01 dexter CRON[15552]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)Dec  4 09:17:01 dexter CRON[15564]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)Dec  4 10:00:01 dexter CRON[15573]: (aapa) CMD (bash /home/aapa/scripts/es_backup.sh &>> /var/log/super/es_backup.log)Dec  4 10:17:01 dexter CRON[15706]: (root) CMD (   cd / && run-parts --report /etc/cron.hourly)But there is nothing in the output file (/var/log/super/es_backup.log). I don't think there is any issue in file permissions as the file is created by the same use (aapa).$ ls -la /var/log/super/es_backup.log-rw-rw-r-- 1 aapa aapa 14215 Dec  4 00:20 /var/log/super/es_backup.logAlso when I ran the same command (bash /home/aapa/scripts/es_backup.sh &>> /var/log/super/es_backup.log) manually the output is indeed written to the log file.Also the command is completing successfully as I see the backup is complete.Not a duplicateThis is not a duplicate to Cron only occasionally sends e-mail on output and errors as the I am not using sh as suggested in the answers. I am running the command in bash explicitly, so it should not be an issue of &.
Why cron not outputting to file?
cron;io redirection