05-23-2022, 01:17 PM
(This post was last modified: 05-23-2022, 07:46 PM by Tim Curtis.
Edit Reason: add sudo
)
You will need to use a symbolic (soft) link instead of a hard link because the currentsong.txt file is updated via writing to a /tmp file first then renaming it to /var/local/www/currentsong.txt. This effectively creates a new file which causes the hard link to become broken.
Try this
Try this
Code:
# Remove hard linked file
sudo rm /var/www/currentsong.txt
# Create soft linked file
sudo ln -s /var/local/www/currentsong.txt /var/www/currentsong.txt