I have this bash script which runs automatically at reboot.
run.sh
printf "Running log registration " printf "Running log registration " printf 'try1 ' > /home/pi/Desktop/system_logs/msg_log.log tail -f /var/log/messages &>> /home/pi/Desktop/system_logs/msg_log.log
It creates the file msg.log.log and write "try 1" BUT it doesn't write all the logs to the file
If I run the bash Script from the command line bash run.sh then it also writing the logs any sugestation why the logs aren't written to file in the rebooting proccess?
bash run.sh
1.4m articles
1.4m replys
5 comments
57.0k users