RobbH wrote: > The command(s) in question: > > > Code: -------------------- > > while true; do echo "$(date)" > "<PROBLEM_DRIVE>/keepawake.txt"; sleep 120; done & -------------------- > > > > The simple answer is that I run that command manually whenever I start > to work with files on a network HDD. The command runs in the > background, so when the work is finished, I recall it to the > foreground and kill it with CTRL-C. > > The more complicated answer is that it used to be part of an elaborate > shell script that runs on the LMS server and extracts current Now > Playing information for for "disc jockey" displays that show the > current time, temperature and what's playing at several locations > around the house. I now know that there are easier ways to get that > information through plugins, but I was unaware of what could be done > with plugins when I wrote it.I was hoping it was something I could run in the > background and would only write to the HDD when music was playing. I am sure that must be possible but no idea how. Ideally it wouldn't write to the HDD when Radio streams are played but would for Spotify tracks. I still don't know what causes the "out of sync" issue when only local tracks are played as the HDD wouldn't be expected to sleep but it can happen.
Sent from my Pixel 3a using Tapatalk ------------------------------------------------------------------------ slartibartfast's Profile: http://forums.slimdevices.com/member.php?userid=35609 View this thread: http://forums.slimdevices.com/showthread.php?t=112723 _______________________________________________ Squeezecenter mailing list [email protected] http://lists.slimdevices.com/mailman/listinfo/squeezecenter
