I'm running hostapd on my raspberry PI to let it function as an accesspoint. It's working fine with the following command:
sudo hostapd /etc/hostapd/hostapd.conf
This will start hostapd and log all output to the console. Now I want to log this output using TEE or pipe. However, one the following commands will cause the program not to start.
sudo hostapd /etc/hostapd/hostapd.conf >> /home/pi/Desktop/loggin.txt
sudo hostapd /etc/hostapd/hostapd.conf > /home/pi/Desktop/loggin.txt
sudo hostapd /etc/hostapd/hostapd.conf | tee log.txt
The terminal will just hang and I have to use ctrl-x to terminate. Why isn't this working? And how can I possibly fix this?