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
2.1m questions
2.1m answers
60 comments
57.0k users