Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8026

Beginners • Re: What am I missing- Cron

$
0
0
&>>file is a bash-ism for redirecting stdout and stderr. In a POSIX shell it puts the first (only) command in the background (without doing any redirections), then sets up a single redirection for the second command (which is empty). So you get no output at all.

Debian cron uses dash by default. Either add SHELL=/bin/bash to the top of the crontab, or change the redirection to the standard form, >> /home/dave/testOut.txt 2>&1.

Edited my post to question the use of &>> as you were making yours :(

Statistics: Posted by thagrol — Thu May 01, 2025 9:08 pm



Viewing all articles
Browse latest Browse all 8026

Trending Articles