Score:0

How do monitor a folder and play that song or video via vlc if there is a new file present?

tz flag

I saw a similar question asked about monitoring folders/directories. But his question was about moving the file and then running it. Monitor folder and run command if there is a file there? The answer included inotify and by using python. Is there a way to bridge off of that idea and only monitor one folder and run from one folder while being able to play music or video (.mp3 or .mov) using vlc? I am not very knowledgeable of python. I am using raspberry pi. Thank you!

cn flag
change the line where they move by the command you want to execute. `aplay` can play a song from command line so no need for vlc in only music. Otherwise see `vlc --help` for command line options for `vlc`.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.