I'm running raspbian and using this bash script to take a photo every minute and upload it to my FTP server:
#!/bin/bash
while [ 1 ]; do
DATE=$(date +"%Y-%m-%d_%H_%M_%S")
raspistill -q 10 -th none -o /home/pi/fb/$DATE.jpg
curl -T /home/pi/fb/$DATE.jpg ftp://myftpserver --user myuser:mypass >> /home/pi/fb/log.txt
sleep 60
echo finished $DATE >> /home/pi/fb/log.txt
done
I want the output of curl to appear in the log.txt file but it is always printed to the console. Why is that? I also tried to use tee but that didn't change anything.