I have a quick question for you :) I've created a bash script which is doing:
#!/bin/bash
ttylog -f -b 38400 -d /dev/ttyAMA0 -t 25 > /home/pi/Desktop/test/output_file.txt
It works perfectly well, I get data in the file output_file.txt However, if I launch this script from a crontab, I get an empty output_file.txt
Do you have an idea why there is a difference between the crontab and launching the script directly?
Thanks!
François